Hi all,
sorry for my dumb question, but why my form can be printed without filling required fields? (fields with a bold red rectangle) and with "User Entered - Required" in "Value" tab.
Thanks a lot.
Luigi
Hi all,
sorry for my dumb question, but why my form can be printed without filling required fields? (fields with a bold red rectangle) and with "User Entered - Required" in "Value" tab.
Thanks a lot.
Luigi
You will have to create your own print button with a validation.
JS for Button click event
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);
}
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs