I have finished a form that includes a large number of 'preSave' scripts. Once the form is 'signed' instructional information becomes hidden, and only completed fields remain. My problem is I need to save the form to enable rights for users with Adobe Reader. When I 'save as' all the information disappears. Is there any way around this? Pretty desperate for any help - thanks!!
Solved! Go to Solution.
Views
Replies
Total Likes
So I see the problem and I agree that the applying reader extension and saving then marks the file. Another option may be to do the action on a button. I would have the user fill in a field or fields assuming they are required. On pre-save you could write a script something like:
if(textfield1.rawValue != to null){
Button1.execEvent("click") // this would be a hidden button that would then perform your lock on the pre-save
}
its a bit more complex but could get you beyond your presave with reader extension issue.
Views
Replies
Total Likes
You may have to add a check into your preSave events, if the form has been already been Reader-enabled or not: so they will only be executed if so.
if (event.target.appRightsValidate({}, 1, false) === true ) {
// add your preSave script here …
}
Views
Replies
Total Likes
where did you reader enable the form. I save the form then open it in Adobe Acrobat and select File-> Save As Other -> Reader Extend PDF
Views
Replies
Total Likes
That's how I tried to reader enable the form - that's when all actions in the preSave events executed.
Views
Replies
Total Likes
that is sort of interesting. I would have thought that a pre-save function would be protected from a reader extension. What is the action you are taking on the presave? Maybe there is another way to accomplish it.
Views
Replies
Total Likes
To reader-enable a form means to add a special certificate that carries the additional rights for the reader and then saving it.
Views
Replies
Total Likes
A person completes the form and saves a copy (this saved copy has certain fields still active for another user to complete). The form includes instructional information - I've used this.presence = "hidden" in preSave so this information disappears in the saved version.
Views
Replies
Total Likes
So I see the problem and I agree that the applying reader extension and saving then marks the file. Another option may be to do the action on a button. I would have the user fill in a field or fields assuming they are required. On pre-save you could write a script something like:
if(textfield1.rawValue != to null){
Button1.execEvent("click") // this would be a hidden button that would then perform your lock on the pre-save
}
its a bit more complex but could get you beyond your presave with reader extension issue.
Views
Replies
Total Likes
Thanks for that - works for what I need. Has taken a while to make the changes but I finally have something I can use. Cheers!!!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies