Skip to main content
Participant
March 12, 2019
Answered

How to lock certain fields in a form?

  • March 12, 2019
  • 2 replies
  • 21270 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**

This topic has been closed for replies.
Correct answer try67

The basic code to do it is:

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

2 replies

Participating Frequently
June 1, 2026

You can make this much easier by using field permissions in the form so your sales staff only fills the pricing section first. After entering prices, those fields can stay locked while customers are still able to select options, choose colors, and sign the contract. This saves time and avoids changing fields to “read only” manually every time.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
March 13, 2019

The basic code to do it is:

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

Participant
March 13, 2019

Pardon my ignorance, but what do I do with the basic code?

try67
Community Expert
Community Expert
March 13, 2019

You can attach it to the MouseUp event of a button field, for example.