Checking for a Null field in a form.
I’m embedding a PDF type form in a page and I want required fields. The form will be printed and signed rather than emailed. I have a number of required fields so I am putting JS in to edit the fields:
event.rc = true;
if (event.value == ” ” || event.value == null )
app.alert(“This is a REQUIRED FIELD’!”);
event.rc = false;
The above catches if a “Space” is entered but not if the field is just returned through.
Any help is appreciated.
- The topic ‘Checking for a Null field in a form.’ is closed to new replies.