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
Braniac
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?

Nesa Nurani
Inspiring
September 17, 2021

I've created an order form with fillable fields. Some of the fields are to be filled in by the sales team such as pricing and customer details and then locked. The other fields are to be kept fillable so that the customer can enter their order or other details.


You can use code in a button for example, go to button properties->action tab, select 'Mouse UP' and from dropdown menu select 'Run a Javascript' and click on 'add', now put code inside:

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

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

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

Just copy line to add more fields as needed, and replace field name "Field1","Field2","Field3" with your actual field names.