Placeholder text in oXygen css for text field and textarea

Post here questions and problems related to editing and publishing DITA content.
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Placeholder text in oXygen css for text field and textarea

Post by mu258770 »

Hi Team

I would like to know whether it is possible to keep some placeholder text in an oXygen css text field(oxy_textfield). We are using oXygen 19.1 Author version.

For example : we have a text box for <change-completed> element and we need to show DD-MM-YYYY as placeholder text in the text box. How this is possible?

2) Also we need to know whether it is possible to have this for text area(oxy_textArea) .

Best Regards,
Shabeer
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: Placeholder text in oXygen css for text field and textarea

Post by alex_jitianu »

Hello,

Currently, those two form controls don't offer this functionality. I will add an issue to support a new placeholder property on the form controls.

Meanwhile, perhaps it will help if you use a date picker form control instead of the text field because you can impose a date format.

There is always the option to create custom form controls that will present a placeholder text as you desire.

Best regards,
Alex
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Re: Placeholder text in oXygen css for text field and textarea

Post by mu258770 »

Hi Alex,

Thanks for the solution.

We are using eclipse-oXygen 18.1.

Currently the date format shown in oxy_datePicker is in 'MM/DD/YYYY' and the date inserted is in 'YYYY-MM-DD' format. This is a little confusing for an end user.

Is there any way to change the date format shown in the oxy_datePicker popup?

Best Regards,
Shabeer
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Placeholder text in oXygen css for text field and textarea

Post by Radu »

Hi Shabeer,

Alex took a week off.
The date picker you see on Eclipse is the usual date picker component that can be used on this platform (org.eclipse.swt.widgets.DateTime) and it formats the presented date based on the current user locale. Unfortunately we cannot quite control this from our side.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Re: Placeholder text in oXygen css for text field and textarea

Post by mu258770 »

Hi Radu,

Ok Thank you :)

Best Regards
Shabeer
Post Reply