Skip to content
Discussion options

You must be logged in to vote

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.

  1. In the Field create/edit screen, in the 'validate' property's value enter the name of the validation that you are going to run (e.g. "onlythree")
  2. In the Validation Rules area create a new Validation Rule with the Name you used above (i.e. "onlythree")
    Enter the server-side validation rule in the PHP (class methods) area
  3. In the Admin View where this will be used; in the JavaScript tab; in the Javascript (edit view file) area, enter the javascript code to add the valida…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cpaschen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant