Skip to main content
Participant
November 19, 2019
Question

Hiding form field boxes after they are filled out

  • November 19, 2019
  • 2 replies
  • 1607 views

I would like to set up form fields for the sales team so they can see where to input thier contact info - then after they fill it out it can be saved just showing thier contact information without the surrounding input box. Thanks for your help in advance!

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
November 19, 2019

So you want to hide the field border. This is easy to do by setting the field lineWidth property to 0.  However, you need to decide on a workflow where there a specific event where this can be done. 

 

One way might be to use a validation script on each field, so the border dissappears when it is non-empty.

Put this script in the custom validation script for the field

 

event.target.lineWidth = (event.value == "")?0:1;

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
November 19, 2019

Thanks for your help! 🙂

Participant
November 19, 2019

Ha I think I answered my own question. I can set up the fields with no color and border and put "Name Here", "Phone Number Here", "Email Here". That way the sales team member can see where they need to fill in AND still save it without showing field form area. 

Thom Parker
Community Expert
Community Expert
November 19, 2019

You could also use a custom format script to create shadow text with labels for each field. This way there is no actual field value, but text is still displayed. 

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