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

eDropdown with multiple options that leads to two different signature fields


Level 2


I hvae 1 dropdown that has two options A and B, when selecting A, signature A should appear, when selecting B, signature B should be appear.

Right now this is the closest I can get:

if (this.rawValue=="A")




I dont know how to add the && command to the script. In order to make Signature appear when selecting option B.

Can someone please help.



1 Reply


Level 10


you can use the switch() method in the dropdown fields change event.

switch (xfa.event.change) {

  case "A" : SIGA.presence = "visible"; SIGB.presence = "hidden"; break;

  case "B" : SIGA.presence = "hidden"; SIGB.presence = "visible"; break;

  default : SIGA.presence = "hidden"; SIGB.presence = "hidden";


The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now