


calvint88270830
calvint88270830
09-01-2018
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.
FormsCal
if(xfa.host.appType == "HTML 5" or emplid.rawValue == null) then
xfa.host.messageBox("You must enter the required data to be able to print this form")
else
window.print()
endif
Thanks,
Calvin
Veena_Vikram
MVP
Veena_Vikram
MVP
09-01-2018
Understand your question is more about HTML5 and not AEM. May be this questions needs to be moved to the correct forum.
calvint88270830
calvint88270830
09-01-2018
Hi,
Isn't HTML5 part of the AEM Designer? I can't seem to find a forum for AEM HTML5.
Veena_Vikram
MVP
Veena_Vikram
MVP
09-01-2018
You mean Adobe Experience Manager ?
calvint88270830
calvint88270830
09-01-2018
Yes, that's correct. Thanks!
smacdonald2008
smacdonald2008
09-01-2018
I believe you are trying to use AEM Forms - correct?
calvint88270830
calvint88270830
09-01-2018
That is correct.
kautuk_sahni
Community Manager
kautuk_sahni
Community Manager
10-01-2018
Moving this question to AEM forms!!