-
I need to add javascript validation to a form/edit view. I just need to do some simple things (like check to see if a multi-select field has no more than 3 selections). I would prefer to have the validation happen onBlur for the specific field. Anyone have some tips or know where to put the code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is pretty easy, but not documented well that I could find (at least not specific to JCB and in one place).
That should provide both server-side and browser validation on form submit AND an immediate alert to the user related to any rule validation failure (before they submit the form). Hope that's helpful to someone. |
Beta Was this translation helpful? Give feedback.
This is pretty easy, but not documented well that I could find (at least not specific to JCB and in one place).
After some trial and error, here's how I found to properly add validation for browser and server end of things.
Enter the server-side validation rule in the PHP (class methods) area