I've been tearing my hair (what's left) out on this one, I cannot get any text fields or fields with numerical info to be set as "required". Someone can tab right past them without entering the information, or print the form with that field empty. I set the field to User Entered- Required under the value tab, and entered a empty message to be displayed if they leave it empty. I could not find an answer to this by doing a search. I did read something about using the exit command?, but could not follow the link to what appeared to be on this forum somewhere. I am using livecycle 8.0.
Are these answers useful? Help other community members by marking useful answers as accepted.
This will handle ensuring that the textfield has an entry in it BUT, only IF the user enters the field. If they simply click to another field, this code will never run.
Fear not...you can catch that too.
If you use the same code but put it in the PrePrint and PreSave events for the form, it will ensure that if the user attempts to print or save the form and the field is blank, they will have to enter something to continue.