These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Scripting for App Alert and Required Fields

neth
Registered: Mar 17 2010
Posts: 25

Hi there,

I wonder if someone could please help with a query I have re a button I have that checks that all required fields have been completed? If required fields are not completed one message is displayed and when all required fields have been completed another message is displayed. I'm a scriptingnovice but have sort of figured out what I want to do (it seems to work anyway!) . The problem I have now is that I want to change the text in the app alert from "Warning: Javascript Window". Is this possible? I'd also like to remove the big x from the app alert when all fields have been completed and the button is clicked by the user. Please find my script below.

Any advice and help would be much appreicated.

Thanks,

Ken

form1.#subform[0].#area[0].Button1::click - (JavaScript, client)

if (form1.execValidate() == false){

app.alert("You have not completed out all of the required fields of the form. Please complete the required fields.")

}
if (form1.execValidate() == true){

app.alert("You have completed all of the required fields. Please proceed to submit this form by email.")

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
If you want to remove the JavaScript waring, you will need to create and install an application folder level script on each user's system using the 'trusted function' method or have your PDF 'certified'.

If you chose to go the application folder level J'S file, you may also need to provide for users that do not have you special script installed on their system.

More information is included in the Acrobat JS API Reference.

George Kaiser

neth
Registered: Mar 17 2010
Posts: 25
Thanks for the quick reply. Think I mite stick with it given what's involved!