Button to clear form and move to top
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?
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.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.