Default Value of DatePicker

Oxygen general issues.
jeramynr
Posts: 1
Joined: Thu Feb 04, 2016 9:48 pm

Default Value of DatePicker

Post 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?
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: Default Value of DatePicker

Post 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
Post Reply