Multiselect drop down list | Community
Skip to main content
New Participant
December 18, 2024
Solved

Multiselect drop down list

  • December 18, 2024
  • 2 replies
  • 947 views

Hi,

I have a dropdown with options in the form of: key=value:

1=Option 1

2=Option 2

...

 

When I create a document of record, only the keys are visible, like: 1,2,3...

 

I need to change that so in the DoR only the selected values are visible. Is there an API for that I can use? Or what can I do?

Best answer by Pranay_M

Hello @marcink-lwr9iu,


Currently, OOTB we do not have the feature to choose between wanting to display the key or the value option for the dropdown field. However, this feature will be added to the product in the upcoming releases.

In the meantime, if you wish to achieve the same you can use a custom DOR template bonded to the filed and add a custom "if-else" statement to the field to display the specific value based on the selection.

Thanks
Pranay

2 replies

Pranay_MAccepted solution
Employee
January 6, 2025

Hello @marcink-lwr9iu,


Currently, OOTB we do not have the feature to choose between wanting to display the key or the value option for the dropdown field. However, this feature will be added to the product in the upcoming releases.

In the meantime, if you wish to achieve the same you can use a custom DOR template bonded to the filed and add a custom "if-else" statement to the field to display the specific value based on the selection.

Thanks
Pranay

Employee
January 6, 2025

Hello @marcink-lwr9iu ,

What's the AEM Forms Version you are using on your Instance ?
Please try this on any version greater than SP18.

Thanks,
Utkarsh

New Participant
January 6, 2025

Hi @utkarsh_241 we are on SP21.