Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Reset data back to initial values

Not applicable
I have a PDF that gets pre-illed with XML from a web page. The fields are editable and there is a reset button at the end of the form. What I need is if the user edits the field and then clicks Reset, the form should go back to being filled with the XML that it came populated with. Is that possible? I can reset the whole form so that all fields are cleared out, but not they get pouplated with the original XML.



Any help is highly appreciated!



Thanks
2 Replies
Not applicable
Any input on this is highly appreciated.



Thanks!
gkaiseril
Level 7
Level 7
You can specify an array of fields to reset.



Syntax

$host.resetData([ STRING param ])



param (optional)

Optional list (separated by commas) of the names of all fields to reset. If not present or empty, all the fields in the form are reset to their default value.



Returns

Empty