<-- Back

When using required validation in the properties of an input element, on change events of other elements in the form are not triggered

Issue

When using validation with the Required type in the properties of an input element in a form, On change events of other elements in the form are not triggered when this validation fails. The image below shows this configuration for a Date Picker widget as an example:

Environment

Studio Pro (all versions)

Cause

This behavior is intended. The Required type check has precedence over custom validation and On change events. As long as the attribute with Required validation is empty, execution never reaches the subsequent validation steps. For more information, see Required Validation on Inputs, Reference Selectors, and Drop-downs.

Solution / Workaround

There is no solution or workaround as this is intended behavior.

Internal information related

  • 286486
  • CJZ85RLTA/p1788768974602059

Additional information

Mendix documentation:

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.