Index

(control)

o2ctrl_focus

boolean o2ctrl_focus(string $form_name, string $ctrl_name, integer $select_mode)

Sets focus to the specified control of form.
$select_mode parameter can take 3 values:
- null (or not passed) select all value
- 0 (zero) cursor at value start position
- 1 (or any other value) cursor at value end position


Parameters:
  1. $form_name
  2. $ctrl_name
  3. $select_mode