Wednesday 29 August 2018

Cursor focus on specific field

To move the focus on the specific field.


Many a times, we need the cursor to move to specific field based on our requirement. The most common scenarios are - validation of fields and Tab Order.

Use the following script to focus.

Snippet:

if (event.fieldFull) {
    getField("NameOfNextFieldGoesHere").setFocus();
}



No comments:

Post a Comment