on 07-01-2008 1:55 PM
Hi community
I have the following requirement: I want the user to fill a required field, if the field is not being filled, I want to restrict the printing of the fom. Once filled, the user is allowed to print the form. How can I achieve that?
Thanks in advance, Points will be rewarded.
Hi Alexander,
I tried my best but could not come up with a proper solution to your problem except the following script which works fine with limitation that the form will be printed with no characters on it.
if( TextField1.rawValue == null)
{
xfa.host.messageBox("Please fill in all the required fields");
xfa.host.setFocus("TextField1");
form1.relevant = "-print";
}
Put it in the prePrint event of form1 which will be there top in the hierarchy.
Regards,
Vaibhav Tiwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question is still unaswered...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.