any alternatives to xfa.host.messagebox | Community
Skip to main content
October 22, 2024
Question

any alternatives to xfa.host.messagebox

  • October 22, 2024
  • 1 reply
  • 743 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Pulkit_Jain_
Adobe Employee
Adobe Employee
October 23, 2024

@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-support 

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

 

Sudha5Author
October 23, 2024

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?

Pulkit_Jain_
Adobe Employee
Adobe Employee
October 24, 2024

Thanks. Checking this further.