Avatar

Correct answer by
Level 1

Just to let you all know....

I GOT IT!!!!

If anyone wants to know, here is what I've done.

The user fills out the form and hit the email button. The recipient opens the form and as this script fires:

------- form1.Page1::docReady - (JavaScript, client) ------

if (xfa.form.form1.Page1.TextField1.rawValue !=null)

     {

     myScriptObject.LockAllFields(form1);

     }

... and it works beautiful.  If they fill out the form and leave that field blank, the PDF is still editable.

I hope this helps someone else out... and thanks for reading

View solution in original post