Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12385

Allow setting a default value on a widget configuration

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.3
    • Component/s: Layouts & Widgets

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified