Highlighted

Button text change the messagebox

PDF_Solutions

10-02-2010

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

Replies

Highlighted

Thom_Parker

11-02-2010

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)