Enabling Tools for Adobe Reader

stephenf8734174

01-11-2017

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!!

Accepted Solutions (1)

Accepted Solutions (1)

mouslander

09-11-2017

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.

Answers (7)

Answers (7)

stephenf8734174

08-11-2017

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.

mouslander

08-11-2017

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.

radzmar

MVP

02-11-2017

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 …

}