We are creating numerous forms in LiveCycle and are very averse to having to specify "User Entered - Required" for two main reasons:
- doing so places those ugly, red boarders around required fields
- most fields on most forms are required, we don't want to clutter our forms with red borders
The problem we encounter is that users can submit empty forms/null values via email, and I yet to find a way around this. Incomplete forms/data, particularly on things like requisitions and the like, can lead to delays in processing. We want to mitigate that by forcing client-side validation before users submit their forms via email.
I am very new to both LiveCycle and JavaScript.
I have tried
fieldname.mandatory = "This cannot be left blank.";
tied to the validate event, but this does not seem to do anything: users can still submit forms, even if the value is null/empty.
Where this would most be used is with text and numeric fields and, occasionally, with radio buttons/exclusion groups.
Can someone please help me figure out simple client-side JavaScript validation (or other method) that would force users to enter values in these mandatory fields before submitting, preferably without having to subject our users to the hideous borders?