Enforcing Required Fields

| No Comments

Setting a form field to “Required” in the “General Properties” tab forces the user to fill in the selected form field. If the user attempts to submit the form while a required field is blank, an error message appears and the empty required form field is highlighted.

There are some cases where this functionality is not sufficient. You need the user to fill out a particular field before moving on to the rest of the form. You could use JavaScript to dynamically enable or disable parts of the form but that can be cumbersome to keep track of.

The ideal situation would be to, where appropriate, force the user to enter data into a required field before moving to another field. A simple JavaScript can be used to achieve this effect.

Full Article