• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
6

Hide inputs to form calculations

New Here ,
May 08, 2024 May 08, 2024

Copy link to clipboard

Copied

I've created a form to allow contractors to generate custome quotes for customers. I have "input" form fields and calculated "output" form fields. I want to allow contractors to enter inputs, like their purchase price and desired profit margin to calculate a customer sell price. Is there a simple way for a contractor to share the output field only PDF with a customer?

TOPICS
How to , PDF , PDF forms , Print and prepress

Views

305

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
Community Expert ,
May 08, 2024 May 08, 2024

Copy link to clipboard

Copied

If the printed form is handed to the customer, then set the field visibility to No Print. But if the PDF is sent, then you'll need a button to make them invisible. Hiding fields is an action.

 

 

 

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

Votes

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 08, 2024 May 08, 2024

Copy link to clipboard

Copied

Is there a way to also make the button disappear before sharing the PDF?

Votes

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
Community Expert ,
May 08, 2024 May 08, 2024

Copy link to clipboard

Copied

Yes, you can use a script, like this:

this.getField("Button1").display = display.hidden;

Votes

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
Community Expert ,
May 08, 2024 May 08, 2024

Copy link to clipboard

Copied

If you want to be on the secure side, you will need to generate a new PDF file, without the information in the fields from the suppliers. The customer may find out a way to check the underlying formulas and data.

ABAMBO | Hard- and Software Engineer | Photographer

Votes

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
Community Expert ,
May 08, 2024 May 08, 2024

Copy link to clipboard

Copied

LATEST

Actually, maybe the best solution is to flatten the PDF before sending it to the client. Make a button that uses the "hide field" action, and also set it to hide itself and then flatten the PDF. Don't save back to the original. 

You can download a free flatten tool here:

https://www.pdfscripting.com/public/Free_Acrobat_Automation_Tools.cfm

 

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

Votes

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