-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to custom validation? #7
Comments
var cf_my_date = {}; return true; Hope the above JS function works for you. Herong |
Thanks for you kindly reply. |
"cf_my_date.two_day_after" is function to be used on the validation tab. But you also need enter the above code in the Displaying > JS tab. |
Almost perfect. But the code had some errors. This is what finally worked for me: var cf_my_date = {}; var field_name = rsv_custom_func_errors[i].field; return true; |
I clone a date type, I want to validate the date user picked is two days after today or not, but i could not write the proper function to validate it.
please help me, thanks.
The text was updated successfully, but these errors were encountered: