-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.7.3
-
Component/s: Layouts & Widgets
Currently default values for documents have to be handled on the document schema (when static) or by event listeners, pre-filling the document properties with some static or dynamic values.
It would be useful to be able to specify a "defaultValue" property on the widget configuration, so that this value is used to initialize the value presented to the user, when existing value is not set (null or empty in case of lists).
This is especially useful for selection widgets, where we often want to speficy the default value to select.