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

Button text change the messagebox

PDF_Solutions
Level 2
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
_Nith_
Level 10
Level 10

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

Nith

Thom_Parker
Level 4
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)