Issue
The Validation feedback activity does a validation check, and if this check fails, it shows a red message below the widget that displays the attribute or association which failed the validation. When validation feedback messages are displayed on a page, the validation feedback messages disappear when calling nanoflow or microflow.
Environment
Studio Pro (all versions)
Cause
This behavior is by design. When calling a microflow/nanoflow, the form first triggers validations to ensure the values in the input are valid. This removes the existing validation messages.
For microflows, the validation messages are expected to be re-added when calling the microflow (each microflow should validate its inputs).
For nanoflows, the system needs to work with the latest state of the object, so it makes less sense to be working on an object that potentially is missing parts of the changes made in the form because they are not yet valid.
Solution / Workaround
To keep validation messages visible when calling microflow or nanoflow, the following workarounds can be implemented:
- When calling a microflow (not a nanoflow), disabling the Abort on validation errors setting skips the local validation and keeps the existing validation messages displayed. However, this option is only available for microflows and not for nanoflows.
- When calling a nanoflow, call the validation widget from the nanoflow that scrolls into view. This will re-trigger the validation and display the messages again after the nanoflow executes.
Internal information related
- 272765
- CJZ85RLTA/p1770979731412969
Additional information
Not Applicable
0 Comments