Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Actions

hideWhenExpression

i ) Hiding the form field

The hideWhenExpression action allows you to control the visibility of form fields based on specified conditions. This is particularly useful when you want certain fields to appear only when certain criteria are met, enhancing the user experience by showing only relevant fields.

...


In this example, the Reason for being in HIV care or the ART field will only be shown when the Are you currently in HIV care or under ART? is equal to Yes.

ii ) Hiding the specified page

...

iii ) Hiding the specified section

...

failsWhenExpression

The failsWhenExpression action is used to define custom validation logic that determines when a form input should fail validation. This is useful for scenarios where default validation rules are not sufficient and you need to create more complex, condition-based validations.

...