Application Development

Set Required Fields

A column property can set whether a field is required.

Records containing fields that are Hard Required cannot be saved until the field is populated. Records with Soft Required fields can be saved but an Error validation message displays if the designated field is unpopulated.

Applying the Soft Required column property automatically creates a view in SQL. Stewardship Tier then registers the view as a Validation Rule to the page and creates a default message that displays to the end user. This validation is an Error message of “FieldX should have a value,” where FieldX is the translated field name, if there is a translation at the time the field is set to soft required.

This feature is available for these control types:

  • Combo Box
  • HTML Area
  • Text Box
  • DateTime
  • Numeric
  • List Box
  • Text Area

Any field in a table that does not allow NULLS automatically displays as a Hard Required field in Stewardship Tier. In many cases it will be the Primary Key field. For example, the Order Detail page displays the Product ID field as required because it is a Primary Key, the Quantity fields and Discount fields are not automatically required because the table requirement allows NULLS.

To make a field required:

  1. Access the Page Columns page's Vertical View for the field.
  2. Click Edit.

    View the field descriptions for the Page Columns page

  3. Select Yes (hard) or Yes (soft) from the Required list box.
  4. Click Save.