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

xfa.host.messageBox button caption

tanmay_singh
Level 2
Level 2

I showing some error message with xfa.host.messageBox("Error in form");

Pop-up window comes up with the "Error in form" text and the OK button. Is there a way I can change the button caption OK to something else.

Thanks,

Tanmay

2 Replies
radzmar
Level 10
Level 10

Not for the messageBox() method.

You can create your own dialogs with Acrobat JavaScript, but it's a bit difficult at the beginning.

See the details in the reference

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

tanmay_singh
Level 2
Level 2

Hi Radzmar.

Thanks for your response. I am unable to apply that in my JS Warning message using LC designer.

Could you please share the working sample, if you've any.

Thanks,
Tanmay