Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Button text change the messagebox

Avatar

Level 2

Hello good day

I could help with the following questions regarding the programming of LiveCycle ES , the problem I have is to create a way and that way I put a messagebox with JavaScript programming, but the buttons is the text of yes / no  I could help to tell me how you change the text of the I customize those buttons. I need change de text of de buttons  I want customize de button

I use the following code

xfa.host.messageBox("¿Es renta variable o renta fija ? Elija SI para renta variable, Elija NO para renta fija","Advertencia!!!",2,2); , buy yhe buttons text is yes/no ,  I want personalize text of the buttons

*I will really appreciate your support with the doubt I have.

Thanks

2 Replies

Avatar

Level 10

You can create a custom dialog using app.execDialog() method. Would you prefer that idea?

Nith

Avatar

Level 4

The built in popup boxes in Acrobat JavaScript cannot be modified.  A custom dialog is the only way you'll be able to create the custom button you'd like.

Take a look at this article:

http://www.acrobatusers.com/tutorials/2006/popup_windows_part5

And at this Acrobat plug-in for creating custom dialogs:

http://www.windjack.com/products/acrodialogs.html

<

Thom Parker
The source for PDF Scripting Info
pdfscripting.com

The Acrobat JavaScript Reference, Use it Early and Often
http://www.adobe.com/devnet/acrobat/javascript.html

Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article)