ValidationRule only warning

Hey all,

is it possible to only return a warning, when a rule is broken, instead of that the rule needs to be fit to proceed ?

Thanks in advance!

1 Like

I understand that you want to proceed with validation error, by treating that as “warning” instead of an “error”. If this is correct, then it purely depends on your business requirement. The validationController.validate() returns a result that contains a valid: boolean property, which is set to true if the result is valid, false otherwise. As per your business requirement, you may choose to proceed even if that is false (not valid). Although in that case, you might want not to show the corresponding error on the UI. Note that the validation-plugin does not prevent you submitting a form unless you explicitly choose to do so (often that is recommended).

2 Likes

Thanks! I have solved my problem now

2 Likes