Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-4272

DateField: Also allow to set a 'defaultTime' beside 'defaultValue'.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 5.5.5
    • forms
    • None

      OTB one can either have as a defaultValue setting a specific Date or the current Date&Time (defaultValue=now).

      It would be nice if also a defaultTime could be set independent from the date value (defaultValue).

      Reasoning / the use case of the customer:
      Authors need to set always the same start and end time of the current day.
      So when they open the dialog, the defaultValue (date) should be "now", but the Time prefilled should be configurable.
      For example: %NOW% at 8:00 or For example: %NOW% at 17:00

      Possible implementation:

      • Extending the DateFieldDefinition with a defaultTime.
      • Adding into DateFieldFactory.getConfiguredDefaultValue() also the defaultTime value into account.
        Current blockers of this: MGNLUI-4270 & MGNLUI-4271

        Acceptance criteria

              Unassigned Unassigned
              cringele Christian Ringele
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Task DoD