Hello Guys!
I have 2 page. At the page 1 there is one button. When somebody on click in this button, I want to reset all the fields of the page 2, Is it possible? What the function?
Than you so much!
Solved! Go to Solution.
Views
Replies
Total Likes
Yes you use the same command and pass the fields or subforms that you want to have reset as a comma separate string. So if you wanted to reset TextField1, TextField2 and subform1 you woudl use the command:
xfa.host.resetData("TextField1", "TextField2", "subform1")
If you do not pass anything then the whole form is reset.
paul
Views
Replies
Total Likes
Hello Rafael ,
You can directly use the Reset button from the object library if you want to reset the whole form data . If you want to be more specific then you can use the following script according to your need .
xfa.host.resetData("form1.Page1"); You can use in a click event on a button in JavaScript .
Hope it helps .
Thanks .
Bibhu .
Is possible I reset just some fields?
Views
Replies
Total Likes
Yes you use the same command and pass the fields or subforms that you want to have reset as a comma separate string. So if you wanted to reset TextField1, TextField2 and subform1 you woudl use the command:
xfa.host.resetData("TextField1", "TextField2", "subform1")
If you do not pass anything then the whole form is reset.
paul
Views
Replies
Total Likes
It worked guys!
Thanks so much for all!
I donated points for all here! Thank you!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies