


Hi All,
When I click reset form button. I would like to reset data then focus to the first field. I can clear information I provided but setFocus to the first name field is not working. Please help.
I use datasets to reset data.
Here is my coding:
event: click
xfa.datasets.data.loadXML("<form1/>", true, true);
xfa.host.setFocus("xfa.form1.contactInformation.firstname")
Thanks,
Cindy
Views
Replies
Sign in to like this content
Total Likes
Put the setfocus on the form:ready event of form1
Views
Replies
Sign in to like this content
Total Likes
xfa.host.setFocus("form1.contactInformation.firstname")
Views
Replies
Sign in to like this content
Total Likes
I tested the clear button. But it is not set Focus to the first field. It is not successful.
Views
Replies
Sign in to like this content
Total Likes
Put the setfocus on the form:ready event of form1
Views
Replies
Sign in to like this content
Total Likes
thank you it is working.
Views
Replies
Sign in to like this content
Total Likes