Changing the Validation of a Form  -instead of if widget
Application Type
Reactive

i want to add specific validation for each input in form with specific error message
 

i know module's properties but this is not what i mean

i need for each form can add custom error message

without using IF Widget because it causes flow become complex 

Solved using Form Validation JQuery
https://jqueryvalidation.org/

Form_Validation.oap

Hello Abduerhman Salama,


If the logic is very complex I suggest you create a client action to validate each attribute where it returns if the attribute is valid or not and if not the validation message. I leave below a screenshoot with the explanation.




Regards,

Jorge Rodrigues

i want something like component allow me to select specific validation from list (MAXLENGTH /MINLENGTH/REQUIRD/COMPARISON/PATTERN) +attached specific  error message
as properties like max record in pagination for example

If you want to add some custom validation message for each field separately, you can use widgetId.ValidationMessage to assign a custom validation message for particular input field. Can do this on screen loading.

i want something like component allow me to select specific validation from list (MAXLENGTH /MINLENGTH/REQUIRD/COMPARISON/PATTERN) +attached specific  error message
as properties like max record in pagination for example

Solved using Form Validation JQuery
https://jqueryvalidation.org/

Form_Validation.oap

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.