Expand my Community achievements bar.

any alternatives to xfa.host.messagebox

Avatar

Level 1

I am working on XDPs in AEM forms designer 6.5.

xfa.host.messagebox is working best in PDF but not in HTML.

I am trying to findout if there is any alternative which will work on both PDF and HTML. Please let me know if any leads.

3 Replies

Avatar

Employee Advisor

@Sudha5 

Could you elaborate on the use case - how these XDPs will be rendered in HTML?

In case of html form, xfa.host.messagebox script is available only for client applications, more information here

https://experienceleague.adobe.com/en/docs/experience-manager-65/content/forms/html5-forms/scripting... 

There is another option, app.alert() but that works with Acrobat API support only.

 

Avatar

Level 1

We generate XDP Forms and use those in web application where they rendered as HTML, the same form we will use to generate PDF files as well. We noticed that JS validation and message boxes are not working correctly in HTML. 

1. Do we need to change the javascript which will work in both PDF and HTML forms generated by the same XDP file?

2. Are there any feature available for inline validation messages which will work in both PDF and HTML forms?