Skip to main content
Version: Next

Yes/No choice

This form field is used to make a "Yes" or "No" choice. The field value is set by selecting a checkbox on the form. You can create up to 40 such form fields on the form.

info

For more information on form fields visit the following WEBCON Community websites:

Example

./img/drex_Yes_no_field_custom.png

Requiredness validation

The form field can have three states in the system:

  1. True — the checkbox has been selected.
  2. False — the checkbox was visible and was saved as cleared.
  3. Empty/NULL — the checkbox has never been visible or saved, so it has no value in the database.

When working with a form in the browser, standard requiredness means that the checkbox must be selected, that is, it must have the value True.

On the server side, standard requiredness means that the form field must have a value, not necessarily the value True.

Server-side validation is performed, for example, for:

  • quick paths,
  • timer actions,
  • cyclical actions,
  • operations executed from a report or outside a form in edit mode.

If the business scenario requires confirmation, acceptance, or consent, meaning the value True, you should configure a business rule for the requiredness restriction that checks whether the form field value is equal to True.

In this case, validation will be consistent regardless of whether it is performed on the form or on the server side.