• Resolved nidalzeineldine

    (@nidalzeineldine)


    Hello , i’m working on my site and trying turn off 28th of july and all of june from date picker , i tried the following code in code snippet as a php snippet and it didnt work .

     
    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', 14 );


Viewing 1 replies (of 1 total)
  • Prashant Rai

    (@prashantrai)

    Hey @nidalzeineldine – It seems that you are using the paid version of WPForms. If you have an active license subscription with us, could you please submit a support ticket through the WPForms account dashboard when you have a chance? 

    From there, our support team will be able to take a closer look at your request. 

    Thanks!

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