Created
October 13, 2022 14:59
-
-
Save cmcdevitt/e6d6031d6a954c78e57e7ae4d524a229 to your computer and use it in GitHub Desktop.
Client Script Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Stop form submission if fields are invalid | |
| UI Type: All | |
| Type: onSubmit | |
| */ | |
| function onSubmit(){ | |
| //Get Fields to Test | |
| var valid = g_form.getValue('group_name_available'); | |
| //Test Fields | |
| if('false' == valid){ | |
| //Let User Know what the issue is | |
| g_form.addErrorMessage("The group name is already in use"); | |
| //This stops the Form Submission | |
| return false; | |
| } | |
| } | |
| // *********************************************************************** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment