-
AuthorPosts
-
March 16, 2019 at 4:44 am #1079330
Hi!
how can I add a custom validation to a date field in your contact form? Like, I don’t want the user to select dates which are in the past…
https://halbwax.webdesign-steyrer.at/reservieren/
Thank you.
-
This topic was modified 6 years, 8 months ago by
Smu88.
March 18, 2019 at 7:53 pm #1080045Hey Smu88,
Please refer to the solution posted here
https://kriesi.at/support/topic/disable-specific-dates-in-datepickerthttpwww-kriesi-atsupporttopicdisable/Best regards,
VictoriaMarch 30, 2019 at 3:21 am #1084769Thank you, that worked :)
Will this be overwritten when I update the theme? I tried adding the file framework/php/class-form-generator.php to my child theme but that has no effect… just when I edit the original file in the enfold folder it works.
Cheers,
Philip
April 1, 2019 at 7:42 pm #1085680Hi,
Please refer to first 3 steps here – https://kriesi.at/support/topic/a-few-changes-and-edits-please/#post-1038016 :)
Best regards,
YigitApril 1, 2019 at 9:37 pm #1085711Hi!
sorry but when I do that I can’t access my wp-admin anymore, I just get the following error:
no direct script access allowed
Cheers,
Philip
April 2, 2019 at 12:45 pm #1086055Hi,
Please copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and find following at the top and remove it (please do not remove PHP opening tag)
if ( ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );If that still does not help, please post FTP and WP admin logins here privately so we can look into it :)
Best regards,
YigitApril 2, 2019 at 3:44 pm #1086113Hi!
Superb, works! Sorry I overread the part of deleting the first line, I thought I have to add it ;)
Thank you => closed
April 2, 2019 at 6:50 pm #1086196Hi,
Glad we could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)Best regards,
Yigit -
This topic was modified 6 years, 8 months ago by
-
AuthorPosts
- The topic ‘Custom Date Validation’ is closed to new replies.
