Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Form fields


Not applicable

I am creating an opinion poll form and want to disable certain questions based on answers selected by the users. How can I select which questions are to be deactivated upon answering a certain question?
1 Reply


Not applicable
if i haven't made any mistake anywhere... something like this:

if (RADIOBUTTON.rawValue == "mother")


TEXTFIELD.rawvalue = "";

TEXTFIELD.access= "readOnly";

TEXTFIELD2.rawvalue = "";

TEXTFIELD2.access = "readOnly";




TEXTFIELD.access= "open";

TEXTFIELD2.access= "open";


if you want to set other fields as soon as you select an option from a drop-down list, you can change the script to

if (xfa.event.newText == "mother")


and so on...