Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-1095

Explain the behaviour of defaultValue and selected properties when item is new and when it's not

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Docu Sprint 48
    • 3

      This seems to be an issue which often confuses customers (and core devs as well, sometimes ).
      Basically defaultValue and/or selected options are only applied for new items, not for existing ones.

      Quoting Mika:

      "Default values are only applied when the item is new.

      What would happen if we applied default values for existing items?
      Authors could open the dialog, see the default value, and decide to simply close/cancel the dialog without realising that value is not saved.

      It does not matter if the dialog definition changed.

      Generally, when modifying dialog definitions, it might be a good idea to combine that with a new delta task, in the version handler; or at least with a groovy script (where then you can apply a default value to pre-existing content)."

        Acceptance criteria

              mdrapela Martin DrĂ¡pela
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR