hub.eb?material_id=259

Required Fields


Field Controls can be set to be Required. This means that the field must have a non-null value before any subsequent submit action can be permitted.

For example, a button control will not trigger any associated events unless all of the Required Fields that are before the button control in the Page Outline have non-null field values.

If a button is clicked when a Required Field has a null value then the user will be prompted to enter data into this field.

Steps


1

Create a new field and add a corresponding field control onto the page.

2

Create a button control after the field control on the page.

3

Select the field control. Go to it's properties tab and click the Required checkbox.

4

Run the form and then, without entering any value into the field, click on the button. You will notice that you are prompted to enter a value into the field.

5

Now move the button control so that it is before the field control on the Page Outline.

6

Run the form again and then, without entering any value into the field, click on the button. You will notice that you are not prompted to enter a field value this time.

This is because there are now no required field controls that are before the button control in the page.

Related