Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

XDP to HTML Conversion - Designer Time Field validations not working in HTML

Level 3
Level 3

Good Morning,

We are in the process of converting all Designer forms into XDP files then uploading to AEM. In this process, I have discovered that the time object validations are not working in HTML. When the user types the value into these objects (we have a 12 hour and 24 hour object created), it simply disappears upon exit. I've tried to use multiple validation formats and get nothing but a Validation error, even when I type it exactly what the validation calls for. This field works perfectly in the "Preview PDF" tab but not the "Preview HTML" tab. Does anyone know if this is a common issue and what is the work around for this? 

Thank you.

3 Replies
Community Advisor
Community Advisor

@nowackem  HTML preview may not honor everything of PDF. You can use vanilla js to validate the field. 


Here are some links for the comparison of PDF and HTML5 renditions:


Are you using FormCalc? You may have to change to JavaScript as FormCalc is only supported server-side.

Also check if your locale settings match the expected locale in the form/field.

Level 3
Level 3
I was just using the Field and Binding tabs under Object panel to set up a 12 hour and 24 hour time field as they work just fine as a PDF. However, when I view in Preview HTML, these properties do not work. So I guess I was thinking if we used JavaScript instead of using the Object properties it might work in HTML. I've had no luck though.