• Resolved Imagemissmikado

    (@missmikado)


    Hi,

    i set up the form with elementor html block like this:

    [booking resource_id=1]
    <script type="text/javascript">
    function wpbc_set_custom_days_selection4(){
    var wpbc_resource_id = 1;
    wpbc_cal_ready_days_select__range( wpbc_resource_id, 3, 100, [], [-1] );
    }
    ( function() { if ( document.readyState === 'loading' ){ document.addEventListener( 'DOMContentLoaded', wpbc_set_custom_days_selection4); } else { wpbc_set_custom_days_selection4(); } }() );
    </script>

    I can select the start and end days in the calendar, but when I try to send the form there is an error below:

    These dates and times in this calendar are already booked or unavailable.
    Please choose alternative date(s), times, or adjust the number of slots booked.

    Booking can not be saved in this date , number of available (single or child) booking resource(s) (0) less than required (1).

    {"":[]}

    So whats wrong with the code? All the selected days are available.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘day range javascript not working’ is closed to new replies.