Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Date/Time Fields Read only

Avatar

Level 2

Hi,

I'm developing an XDP Form to be rendered as HTML, but I can't seem to make the Date/Time Field readOnly on the client. It can be made "protected" however, which disables user access to the field but this does not remove the date picker icon which appears when the date field gets focus, or disable access for the date picker which means whatever value you select from the date picker gets written into the "readonly" field.

Is there any way to dynamically disable the date/field (particularly the date picker icon) from appearing on the client?

2 Replies

Avatar

Former Community Member

If you would like to simply display a protected date in a specific format, the sample on this thread may assist you:

http://forums.adobe.com/message/1923393#1923393

Avatar

Level 2

Thanks. That might be a workaround, to display a date value in a protected

text-field, but we are just trying to disable the control (date field)

itself.

The specific problem is that when we use a date control in the XDP rendered

as XHTML (ES8.2), if we make it protected the display area appears

(correctly) to be greyed-out but the date-picker is still active - and if a

date is selected it is populated through to the greyed-out display area and

the underling xml.

Is there any other way to disable the date picker part of the date field ?