Question
1
Replies
3268
Views
Posted: April 20, 2017
Last activity: April 20, 2017
Closed
Dropdown selection
Hi,
I have a requirement to display the place holder for all drop downs.
1) If the drop down has multiple values, then it should display the place holder <- Select -> by default
2) if the drop drown has only one value then it should display the first value as the default value instead of the placeholder.
Can you please help me to achieve this requirement?
OOTB you will not find exactly what you need.
Scenario 1) is very easy to acheive. You just use this option.
For scenario 2) the drop down control does not support conditional logic to change the configuration based on the number of options. While not the most elegant, you can consider just having two cells side by side with visible when conditions. When there is only 1 result for your source, display the control as is. Else, display the version which uses the placeholder above. Depending on your source data, this may or may not be complicated.