Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Change Caption based on Drop Down selection


Level 7

Is it possible to change the caption of a text field based on drop down selection?

For example DD Item A, B

Text Field for item A caption DepartmentA

and for item B caption DepartmentB


1 Reply


Former Community Member

sure ....I assume you know how to get the value that the user selected in the DDlist....then to set the caption you woudl use:

Fieldname.caption.value.text.value = "whatever you want to set it to"