I know this subject has been discussed already but I cannot get this to work and I want to know what I am doing wrong. I am new to Livecycle.
I have a form that our print Department is adamant that will alert the user that some required fields are not filled in.
I have seen and inserted the Javascript under the button Click. Am I correct? What do I need to rename for it to find the fields I have on this form? I have tried inserting the name of the fields in my form into the Formfield1 sections. Am I wrong?
if (Form1.Page1.Formfield1.rawValue == null ||
Form1.Page1.Formfield2.rawValue == null ||
Form1.Page1.Formfield3.rawValue == null ||
...
Form1.Page1.Formfieldx.rawValue == null)
{
app.alert({cMsg:"Please fill out the mandatory fields.",cTitle: "More information requiered", nIcon: 1, nType: 0} );
}
else
{
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
}
Let me know what I am doing wrong.
On the plus side I have figured out the Page flow features in these forms which works excellent. Thanks for all the help you have been giving me since I went to Livecycle.
Thanks
Biff
Your code seems to correct. My concern on this is does your form contain a subform? Maybe you could have missed that? If that is so, you may need to insert that subform name in your code.
j.glitch