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.
Hey Smu88,
Please refer to the solution posted here
https://kriesi.at/support/topic/disable-specific-dates-in-datepickerthttpwww-kriesi-atsupporttopicdisable/
Best regards,
Victoria
Thank 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
Hi,
Please refer to first 3 steps here – https://kriesi.at/support/topic/a-few-changes-and-edits-please/#post-1038016 :)
Best regards,
Yigit
Hi!
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
Hi,
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,
Yigit
Hi!
Superb, works! Sorry I overread the part of deleting the first line, I thought I have to add it ;)
Thank you => closed
Hi,
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