Trigger form validation with edoras API


#1

Hello,

is it possible to trigger the form validation in a script button with edoras API? If not, what is a good/right way to do it? We need to execute the validation without the creation of a case.

Thank you.
Best regards

Julia


#2

I guess you request to show the validation messages

There is not public API to do that.

In a browse form, Until version 2.1.0 a way to do that from a script button is to have in the script of the script button the following line:
angular.element("[ec-form]").scope().showValidationMessages = true

for a creation form with parent/template selectors, u can use:
angular.element("[ec-form]").eq(1).scope().showValidationMessages = true

Keep in mind that we don’t ensure maintenance of this kind of scripts between future versions.


#3

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.