• Resolved nidalzeineldine

    (@nidalzeineldine)


    Hello , i asked for help on this forum few days ago and i provided the code snippet i used trying to turn off certain dates in the date picker from 28-6-2023 to 30-7-2023 , i got a reply to report the problem from the dashboard of the plugin on my site ( i have the paid version) i could not find a place to report , i checked the snippets and used one but it did not work. the snippet will be provided below.

     
    function wpf_limit_date_picker() {
        ?>
        <script type="text/javascript">
            var d = new Date();
            window.wpforms_datepicker = {
                disableMobile: false,
                // Don't allow users to pick specific range of dates
                disable: [
                    {
                        from: "2023-6-28",
                        to: "2023-7-31"
                    }
                ]
            }
        </script>
        <?php
    }
    add_action( 'wpforms_wp_footer_end', 'wpf_limit_date_picker', 8071 );

    its inserted as a php snippet , the whole contact form id is 8071 , the ID of the date picker is 14

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Turn off a duration (30 days) in date picker’ is closed to new replies.