Page 1 of 1

Default Value of DatePicker

Posted: Thu Feb 04, 2016 9:50 pm
by jeramynr
Is it possible, in Oxygen XML Editor 17, to have today's date populated as the default value in a DatePicker when Authoring an XML document?

Re: Default Value of DatePicker

Posted: Fri Feb 05, 2016 10:29 am
by alex_jitianu
Hi,

I need little more details to understand your situation. When inserting such a date element, do you want to automatically insert the current date into that element? This can be achieve with an author action based on a InsertFragmentOperation that uses the "date" editor variable inside the fragment to insert:

Code: Select all

<element>${date(yyyy-MM-dd)}</element>
Or is this about the widget that allows you to select a date and you want it to present the current date instead of the one currently set in the form control? By default, if no value is present in the form control then the widget will present the current date so a quick solution would be to delete the value from the form control before presenting the widget.

Best regards,
Alex