PDF Form spawned page reset fields only on spawned page
Hi experts, trying to reset form fields but only on the spawned page using a 'button'. Right now it resets both spawned and original page. Thanks for any assistance!
Hi experts, trying to reset form fields but only on the spawned page using a 'button'. Right now it resets both spawned and original page. Thanks for any assistance!
In order to reset only the fields on a spawned page you need to use a script that dynamically works out the name of the fields to reset.
For example. If the button is named "Reset". Then on the spawned page it will be named "P#.TemplateName.Reset".
If you were to hard code the reset field names, then you would need to run this script.
this.resetForm( "P#.TemplateName");
To generalize the code so that it works on any template page, the script needs to extract the template prefix from the name of the reset button. Like this:
var strPrefix = event.targetName.split(".").splice(0,2).join(".");
this.resetForm(strPrefix);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.