Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

What is the opposite for readOnly (or OPEN the field for input)?

Avatar

Level 8

Hello

I have 2 text fields, the 2nd field (readOnly and Grey color) is dependent on 1st field value. Say,

1st section

if user DID NOT entered any value in 1st fied,

then, make the 2nd field readOnly and greyed out it.

2nd section

if user entered any value in 1st fied,

then, make the 2nd field OPEN and normal color.

The 1st section(readOnly) am getting, pls. let me know the Java Script code for 2nd section. I tried with readOnly = false, but did not worked!

THank you

1 Accepted Solution

Avatar

Correct answer by
Level 3
JavaScript
TextField.access = "open";
FormCalc
TextField.access = "open"

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3
JavaScript
TextField.access = "open";
FormCalc
TextField.access = "open"