Support » Plugin: WP Contact Slider » Gravity Forms Date Field Does Not Work

  • Resolved santifri

    (@santifri)


    The date picker doesn’t work when I insert the form into the slider. The same form here (an exact copy) does work: vepersa.com/cita-previa
    It must be a conflict between both plugins but I am not able to figure out what the solution may be, any help?

    Thanks in advance

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @santifri,

    Thanks for using WP Contact Slider,

    We have forwarded the details to the technical team, and we will get back to you once we hear from them.

    Thanks

    wpexpertssupportteam

    (@wpexpertssupportteam)

    Hi @santifri,

    Thanks for your patience,

    We have fixed the issue and shared the updated plugin link. Kindly download the plugin from the link, and please make sure to delete the previous version of the plugin.

    Download: WP Contact Slider

    Once you approve, then we will release the plugin update with the fix.

    Thanks

    Thread Starter santifri

    (@santifri)

    Perfect! Installed update and now works fine.

    Thank you very much!

    Regards

    wpexpertssupportteam

    (@wpexpertssupportteam)

    Hi @santifri,

    Thanks for the feedback

    Thread Starter santifri

    (@santifri)

    I’ve found another issue. This script works in other forms here: vepersa.com/cita previa but not in the slide:

    <script>
    gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
        if ( formId == 5 && fieldId == 7 ) {
           // No fines de semana:
    	   optionsObj.firstDay = 1;
            optionsObj.beforeShowDay = jQuery.datepicker.noWeekends;
    	   // 2 días mínimo para solicitar cita
    		optionsObj.minDate = '+ 2D';
    	   // Máximo de 12 semanas para pedir cita desde hoy:
    		 optionsObj.maxDate = '+12 W';
        }
        return optionsObj;
    });
     
    </script>

    Any idea?

    wpexpertssupportteam

    (@wpexpertssupportteam)

    Hi @santifri,

    Please try this code:

    jQuery(document).ready(function() {
        
         gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
        console.log(formId);
    
         if ( formId == 2 && fieldId == 7 ) {
         // No fines de semana:
         optionsObj.firstDay = 1;
         optionsObj.beforeShowDay = jQuery.datepicker.noWeekends;
         // 2 días mínimo para solicitar cita
         optionsObj.minDate = '+ 2D';
         // Máximo de 12 semanas para pedir cita desde hoy:
         optionsObj.maxDate = '+12 W';
         }
         return optionsObj;
        });
    });

    Thanks

    Thread Starter santifri

    (@santifri)

    Solved! thanks a lot!

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Gravity Forms Date Field Does Not Work’ is closed to new replies.