Builder Conditions

Anne Rosebery

Builder Conditions

In the builder you can define two conditions (currently): visible and enabled. These conditions are expressions which when evaluated will affect the field they are bound to.

Variables available by default:

  • space
  • kapp
  • form
  • values
  • identity

For example:

// Visible expression on section Requestor Info Section
values('requestFor') === 'someone else'

// Set this expression in the Required constraint on fields within the
// Requestor Info Section.
values('requestFor') === 'someone else'

The example above conditionally shows the section “Requestor Info Section” when the “requestFor” radio button is set to “someone else”. It will also then conditionally make the fields within that section (as defined in the Form Builder) required as well.

If “me” or some other value in the “requestFor” field is selected then the Requestor Info Section will be hidden and its fields will not be required.

The system will apply these automatically.