Default Value of DatePicker

<oXygen/> general issues.
jeramynr
Posts: 1

Default Value of DatePicker

Thu Feb 04, 2016 9:50 pm

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: 632

Re: Default Value of DatePicker

Fri Feb 05, 2016 10:29 am

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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 5 guests