A dropdown provides users to select a value from a list of options. Both reference field and picklist field can form a dropdown control.
Following three attributes from fieldUi decide the dropdown behavior.
-
defaultValue
-
prompt
-
required
Default Value
General
Only reference field can have default value. If there is defaultValue, defaultValue will be displayed by default and there is no “empty” entry in the dropdown.
Status
Release Available |
Status |
Framework Name |
---|---|---|
Default Value
General
If there is no defaultValue and there is prompt, prompt will be displayed by default whose optionValue is ‘’.
-
Therefore, if the dropdown is required and prompt is kept, when submit, the required error message will be displayed.
Status
Release Available |
Status |
Framework Name |
---|---|---|
Default Value
General
If there is no defaultValue nor prompt,
-
If it is a picklist and if the field is required, the first option is displayed by default and there is no “empty” entry;
-
Otherwise, an “empty” entry with optionValue ‘’ will be displayed by default.
Status
Release Available |
Status |
Framework Name |
---|---|---|