Copy link to clipboard
Copied
I currently have a form with a button to clear all fields. Is there a way to have this button also move to the top of the form, or at least to the first field?
You want the button field itself to move, or the focus to move to the first field? If you want the button to move you have to change the rect property in the script. If you want the focus to move use this script in the button:
this.getField("TheField").setFocus();
The field can be hidden and placed anywhere on the page, or you can use an existing field.
Copy link to clipboard
Copied
You want the button field itself to move, or the focus to move to the first field? If you want the button to move you have to change the rect property in the script. If you want the focus to move use this script in the button:
this.getField("TheField").setFocus();
The field can be hidden and placed anywhere on the page, or you can use an existing field.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
That's what I thought. See my edited answer.