Expand my Community achievements bar.

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

Form popping up certain information once selection is chosen in drop down menu.

Avatar

Former Community Member

Is if possible that I could have a drop down menu and once a selection is made it displays a "set information section" with pictures and logo's etc. pop's up according to that selection?

1 Reply

Avatar

Level 10

Hi,

Yes it is possible. you would put the respective groupings of pictures and logos in separate subforms. The subforms can be stacked one above the other and their presence set to hidden.

Then in the exit event of the dropdown you would have either an if statement or a switch statement to change the presence:

if (this.rawValue == "My Company")

{

     myCompanyLogo.presence = "visible";

     yourCompanyLogo.presence = "hidden";

}

else if (this.rawValue == "Your Company")

{

     myCompanyLogo.presence = "hidden";

     yourCompanyLogo.presence = "visible";

}

...

else

{

     myCompanyLogo.presence = "hidden";

     yourCompanyLogo.presence = "hidden";

}

Basically you are setting up white space in the form and then showing the appropriate logo/picture. Here is an example of dropdowns doing different things: https://acrobat.com/#d=jD3k1sL7PGcTo6CHHTiEOA

There is another way. You can have the logos and pictures in the form as 'image' objects that are hidden and then have an 'imagefield' object in the white space. Then the dropdown script would set the rawValue of the 'imagefield' to match the appropriate hidden 'image' object. An example is here: https://acrobat.com/#d=BI-C*vM-cryysNXA9Hpt5A

Hope that helps,

Niall