Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #620118

    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!

    #621420

    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

    #622260

    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!

    • This reply was modified 8 years, 8 months ago by jasksks. Reason: Problem Solved!
    #622270

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Date picker Restaurant Reservation Form’ is closed to new replies.