eDropdown with multiple options that leads to two different signature fields

Avatar

Avatar
Boost 1
Level 1
celisna
Level 1

Likes

2 likes

Total Posts

18 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
celisna
Level 1

Likes

2 likes

Total Posts

18 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
celisna
Level 1

29-09-2015

Hello,

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")

SIGA.presence="visible";

else

SIGA.presence="invisible";

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.

Kr,

Nancy

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

30-09-2015

Hi,

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";


}