Highlighted

help with forms & java script

New Here ,
Oct 30, 2020

Copy link to clipboard

Copied

Surely I haven't tried everything but it feels like it. I have a fillable PDF form with a SUBMIT button that emails the form to me. I want to receive the form in a non-editable format and I want the editable form to clear after it's submitted so the next user opens a blank editable form. I also have a signature field but it is not a required field. Some users may only have Reader, not everyone will have full Adobe (I'm using XI Standard). I'm having the following troubles:

 

1. When I receive the form, I don't want it to be editable anymore. Have tried running a javascipt to lock form before SUBMIT but it remains locked when the next user goes to fill out the form again.

2. I want the form to clear when the next user goes to complete the form. I've tried adding javascript after the SUBMIT button but it clears the form when I open it as the recipient. I've tried to add this action to the page preferences (clear on page open) but it also clears the form when the email recipient opens the email attachment. I have also tried to add a Print action before the SUBMIT button (both on the button actions, Print then Submit) but received an error that no PDF was created on the print action.

3. I have looked at flattening the PDF but I don't know if that will work but I need help understanding this.

4. I'm setting a password on the file to restrict editing - only printing, form fill & existing signature fields are allowed. At first I used Save As Other to save as Reader Extended file but received an error saying I needed to turn that off.

 

Help!

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

41

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

help with forms & java script

New Here ,
Oct 30, 2020

Copy link to clipboard

Copied

Surely I haven't tried everything but it feels like it. I have a fillable PDF form with a SUBMIT button that emails the form to me. I want to receive the form in a non-editable format and I want the editable form to clear after it's submitted so the next user opens a blank editable form. I also have a signature field but it is not a required field. Some users may only have Reader, not everyone will have full Adobe (I'm using XI Standard). I'm having the following troubles:

 

1. When I receive the form, I don't want it to be editable anymore. Have tried running a javascipt to lock form before SUBMIT but it remains locked when the next user goes to fill out the form again.

2. I want the form to clear when the next user goes to complete the form. I've tried adding javascript after the SUBMIT button but it clears the form when I open it as the recipient. I've tried to add this action to the page preferences (clear on page open) but it also clears the form when the email recipient opens the email attachment. I have also tried to add a Print action before the SUBMIT button (both on the button actions, Print then Submit) but received an error that no PDF was created on the print action.

3. I have looked at flattening the PDF but I don't know if that will work but I need help understanding this.

4. I'm setting a password on the file to restrict editing - only printing, form fill & existing signature fields are allowed. At first I used Save As Other to save as Reader Extended file but received an error saying I needed to turn that off.

 

Help!

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

42

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 30, 2020 0
Adobe Community Professional ,
Oct 30, 2020

Copy link to clipboard

Copied

Share the code that you're using and where are you currently running it from.

 

This may help the developers in this community to assist you better. Or even better, if you can share an example of the PDF.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 30, 2020 0
Most Valuable Participant ,
Oct 31, 2020

Copy link to clipboard

Copied

If you're concerned about what the next user sees, it suggests that you allow your users to save over the original form. Don't allow that, that way lies disaster. Create the blank form, make it available, and use normal system security to make sure nobody can write either the file OR the folder it is in. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 31, 2020 1