Skip to main content
New Participant
March 12, 2019
Answered

How to lock certain fields in a form?

  • March 12, 2019
  • 1 reply
  • 21067 views

I use adobe forms for my contracts in a roofing business. I need my sales staff to be able to fill in the prices for several options and lock those fields before sending to customer. I will then need the customer to be able to select contract choices, color selection and sign. The only option I'm tech savvy enough to know is to make the price fields "read only" after filling them in. My staff aren't quite advanced enough to do that every time. I'm sure there's a more efficient method. **I have no idea how to create a javascript code, button or bookmark**

Correct answer try67

The basic code to do it is:

this.getField("FieldName").readonly = true;

1 reply

try67
try67Correct answer
Community Expert
March 13, 2019

The basic code to do it is:

this.getField("FieldName").readonly = true;

New Participant
September 17, 2021

Hi, I'm an absolute novice at this. Would anyone mind going through it step by step? I need as much help as I can get. Is there a video demonstrating this?

New Participant
March 5, 2022

If you want to switch from the same button then use this line:

this.getField("Field1").readonly = this.getField("Field1").readonly == false ? true : false;


So how can I use an if then statement to determine if the field is filled out and if it is, make that field read only, leaving the empty fields open so the customer can complete the form?

if this.getField("Field1") == ""; then thisgetField("Field1").readonly = false; else thisgetField("Field1").readonly = true