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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to add fields validation before Printing - HTML5 Forms


Level 1

Hi there,

I am quite new to HTML5 Design and I am wondering if anyone has run into this issue before.

I have a HTML5 form with some required fields which need to be validated after I click the Print button. I came up with the script below; however, it kept going to the loop even though I have entered the required data.  Using the HTTP Submit Button will go through all required fields but it does not bring up the Print Dialog.


if( == "HTML 5" or emplid.rawValue == null) then"You must enter the required data to be able to print this form")






7 Replies


Community Advisor

Understand your question is more about HTML5 and not AEM. May be this questions needs to be moved to the correct forum.


Level 1


Isn't HTML5 part of the AEM Designer? I can't seem to find a forum for AEM HTML5.