/
How do I show the name of the item and its description in a dropdown?
How do I show the name of the item and its description in a dropdown?
Step-by-step guide
- Click on Modules.
- Select the Module with the appropriate form field.
- Select Forms tab.
- Select Field List button "Create/Update Fields"
- Use the filter to search for the relevant field.
- Select Edit on the field.
- Select Custom JavaScript tab.
- In the “Filter” section type
for (var i = 0, len = fieldScope.items.length; i < len; i++) {
var item = fieldScope.items[i];
if (!item.descriptionAppended) {
var separator = '-';
item.descriptionAppended = true;
item.text = item.text + separator + item.description;
}
}
return fieldScope.items;
(Example: If you want a diverse set of separator characters, then you need to change the value of the separator variable in the JavaScript.)
Related articles
, multiple selections available,
Related content
How do I concatenate fields in a lookup?
How do I concatenate fields in a lookup?
More like this
How do I create lookup list fields?
How do I create lookup list fields?
More like this
How to do I create a new Select List drop-down field?
How to do I create a new Select List drop-down field?
More like this
How do I create select entry fields?
How do I create select entry fields?
More like this
How to: Add subtext to a Lookup/Text/Numeric Control
How to: Add subtext to a Lookup/Text/Numeric Control
More like this
How do I customize a dropdown list?
How do I customize a dropdown list?
More like this