Gravity forms date function/hook to limit date span on validation - Wordpress Solution
[Solved] - Gravity forms date function/hook to limit date span on validation - Wordpress Solution |
---|
Try following codes |
Hello,
I am struggling to find any online resources for this.
The question prize is an innitial starter as I need it answering asap, and I'm not sure if it's actually possible. If no one can answer it in time I i will have to abandon it. If someone can help, I will be happy to add another $50 to the prize. So the total prize is $70
The question..
I am using the Date field.
In this mode:dd/mm/yyyy
And upon form validation, I need to check if the date is within a date span. This is my date span below...
18/03/2013 - 28/7/2013
I guess this can done using the validation hook php that gravity forms show you. But will require some clever skills to create the function.
If someone does try and enter a invalid date, the form must not submit and the validation message should read...
Sorry, your invoice date is invalid.
Some useful links.
[[LINK href="http://www.gravityhelp.com/documentation/page/Date"]]http://www.gravityhelp.com/documentation/page/Date[[/LINK]]
[[LINK href="http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook"]]http://www.gravityhelp.com/documentation/page/Using_the_Gravity_Forms_%22gform_validation%22_Hook[[/LINK]]
If anyone can help, that would be soooo awesome.
Thanks
Full prize full will go one person only.
Solution - 1Hello, could you send the form and input IDs to help make the function as accurate as possible Solution - 2Hi Josh, I can surely help you, just need a lunch break. Meanwhile, you can increase the prize ;-) Regards, Gabriel Edit: I see ktrusak offered help first, so I'll wait for him to deliver the solution. |
Date: 2022-10-21 05:02:50 |
Category: Wordpress |