Checking for Mandatory Fields

Previous  Home topic  Next  Print this topic Send Feedback

The need to check for mandatory fields is a very commonly used behavior. It ensures that the user is not able to move to the next page until all required fields have been completed.

 


Note: Mandatory fields can also be managed in the Layout view by checking the Must Be Answered option on the object properties. However, be aware that mandatory checks made in this way are not performed until the form is submitted. For multi-page forms this could mean having to go back several pages to enter in mandatory data. We recommend using behaviors to perform mandatory checks as a user completes each page.


 

Complete the following steps to add mandatory field checking to a form:

 

Document Icon

1.Click on the button object that should prompt field checking.  

Note: It is not possible to assign behavior to the Button is Pressed event on a page or Submit button. If you want to add additional behavior to a button then use a basic Button object for complex behavior sequences.


2.On the Button properties, click the Button Is Pressed behavior event. PerfectForms™ switches to the Behavior view.
3.In the Objects Commands section of the Toolbox on the left, drag and drop the Check Mandatory command onto the Layout area.
4.In the Main section of the Properties bar, ensure that the properties are visible. If they are not, click on the blue section heading to show them.
5.Click the Add button to select the mandatory form fields. You will now see a dialog that allows you to select one or more fields.
6.Expand pages and select the fields you want to make mandatory. Click OK.

Select an Object Dialog

Updated: 06/12/2011  Page url: http://www.perfectforms.com/Documentation/manual/html/?checking_for_required_fields.htm
PerfectForms™ -- forms software, workflow software, and business process management