Hi there,
I’ve got some code in the form generator php that only allows users to select dates 7 days in advance. The issue is that some users have found a workaround which is after selecting the date, they can simply type into the field width to overwrite the 7 days in advance rule. Is there a way to prevent that?
Thank you!
Hi Jon!
Please add following code to Functions.php file in Appearance > Editor
function custom_link_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('input.avia_datepicker').attr('readonly');
});
</script>
<?php
}
add_action('wp_footer', 'custom_link_target');
Cheers!
Yigit
Hi Yigit,
Thank you for your help! Scratch my previous message, I pasted it in the child theme’s function.php and it works now.
Thank you very much for your help!
Hey!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Best regards,
Yigit