Form to Be Approved by Many

New Here ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

I have already created a Form, but the issue here is that the form has to be sent to many people for Approval. Each Approver has a specific clearance Section of the Form. the Query here is that they need to fill their sections with the required comments and email the form back to the sender. the sender has to then send the form to the next Approver. is there a way that if the approver fills certain fields they get Auto readonly while the other fields that are not filled remain fillable.

 

Note All the Approvers have only Adobe reader so cannot use Create and Distribute.

 

Whats the best way in acrbat because if I use buttons any one can click the button and it get readonly is there a better way

TOPICS
Acrobat SDK and JavaScript, Comment review and collaborate PDF, PDF forms, Security digital signatures and esignatures

Views

717

Likes

translate

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
community guidelines
Adobe Community Professional ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

This is a feature of Adobe Sign.  

Go into Prepare Form Mode and change the form to an Adobe Sign Form. This is an entry in the "More" popup menu in the panel on the right side of the Adrobat window in prepare form mode.

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

translate

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
community guidelines
New Here ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

Cannot use Adobe sign because the approver changes per form. 

 

Is there a way where creating buttons and that restrict the fillable fields to what the Approver has to Approve and those get read only as the Approvers keep changing per person.

Likes

translate

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
community guidelines
Adobe Community Professional ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

Ok, so that is more complicated than you can do for free. Have you checked out the Adobe Sign Workflows

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

translate

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
community guidelines
Adobe Community Professional ,
May 05, 2020 May 05, 2020

Copy link to clipboard

Copied

This answer is Yes, but you are asking for something that is complicated.  You'll need a developer. Contact me though this forum or through www.windjack.com

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

translate

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
community guidelines
New Here ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

i have created buttons, locked fields as per field names.

 

Created a Approval date and time stamp with the below code

 

is there a way to display the Word Approved when the Approved button is clicked and Decline when the decline button is clicked.

 

var fieldsToLock = ["Remark 1", "Remark 2", "Remark 3", "Remark 4","Remark 5", "Remark 6", "Detail 1", "Detail 2", "Detail 3", "Detail 4", "Detail 5", "Detail 6", "Days 2", "Days 3", "Days 4", "Days 5", "Days 6", "Amount 1", "Amount 5", "Amount 6", "Approver Name", "Approver Code", "Approver Stamp", "Approved", "Rejected", "Approver Stamp"];

for (var i in fieldsToLock) this.getField(fieldsToLock[i]).readonly = true;

var gD = new Date();

this.getField("Approver Stamp ").value = util.printd("dd/mmm/yyyy hh:MM tt",gD);

Likes

translate

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
community guidelines
Adobe Community Professional ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

Yes, how do you want the text to be displayed?  

An easy way is to create a form field or text annotation and put the Word "Approved" or "Declined" in it.

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

translate

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
community guidelines
New Here ,
May 15, 2020 May 15, 2020

Copy link to clipboard

Copied

have put 2 buttons so if the Approved button is clicked it the field should show Approved.

if the decline button is clicked it should show decline. what code do i write for that 

Likes

translate

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
community guidelines
Adobe Community Professional ,
May 20, 2020 May 20, 2020

Copy link to clipboard

Copied

If you have two separate buttons you don't need any code, use the Show/Hide action on the MouseUp

But if you are interested in the code, here's an article and sample file:

https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm?sd=40

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

translate

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
community guidelines
New Here ,
May 20, 2020 May 20, 2020

Copy link to clipboard

Copied

are you the same person from this article

https://acrobatusers.com/tutorials/file-paths-acrobat-javascript/

 

Tried the below codes from your article. 

app.openDoc()

app.getPath()

 

How do i add a script to insert a page or button with a popup to that ask for file location

 

Likes

translate

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
community guidelines
Adobe Community Professional ,
May 20, 2020 May 20, 2020

Copy link to clipboard

Copied

Yes, I am the same person who wrote the article. 

Do you want a file location? or for a file to be opened?

Browsing for a file is a privileged operation, but there are ways to do it.

Read this:

https://www.pdfscripting.com/public/Alerts-Popups-and-Other-UI.cfm#JSSpPur

https://www.pdfscripting.com/public/Trust-and-Privilege-in-Acrobat-Scripts.cfm?sd=40

https://acrobatusers.com/tutorials/popup_windows_part3/

https://acrobatusers.com/tutorials/popup_windows_part4/

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

translate

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
community guidelines