Required Field Business Rules

Often you want to require a dataform field to be completed, but only under certain conditions. Making the field required at the dataform level is not a good solution. That's where the required field business rules come into play.

The following list comprises the required field rules.

Rule Description

_HE_RequireField

_SE_RequireField

Displays a hard error (_HE_RequireField) or soft error (_SE_RequireField) on a parent or child/tab dataform when you attempt to save the form without entering a value in the specified required field. If you are configuring a hard error, you are unable to continue the Save process without providing a value. If you are configuring a soft error, you can choose to provide a value or you can continue the Save process without providing a value.

 

Note: 

  • These methods are only configurable on the primary form of a tab set but you can reference triggering fields from tabbed forms.

  • These methods support the following configurations:

    • Singleform to singleform

    • Multiform to singleform

    • Multiform to multiform if both dataforms are within the same tab set

    • Tab field to Tab field if both fields are within the same tab set

  • These methods replace the _RequireFieldOnThisForm and _RequireTabField business rule methods.

Parameters: RequiredDataformName and RequiredFieldName.

_RequireAdHocField

Checks for a field value that resides in a node embedded in the dataform XML packet.

Parameters: sFieldPath and sFieldLabel

Related Topics: