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

    Hallo, ist es möglich im Kalender (Datepicker) einzustellen, dass der
    Besucher keinen Tag auswählen kann, der nicht mindestens zwei Tage vom
    aktuellen Datum der Eingabe entfernt ist. Beste Grüße, Christian
    ———-

    Hello, is it possible to set in the calendar (Datepicker) that the
    Visitors can not pick a day that does not last at least two days from
    current date of entry is removed. Best regards, Christian

    #884619

    Hey WKM,

    Sorry for the late reply!

    – Please firstly make sure that you are using a child theme – https://kriesi.at/documentation/enfold/using-a-child-theme/

    – Please copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and find following at the top and remove it (please do not remove PHP opening tag)

    
    if (  ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
    

    – Add following code to Functions.php file of your child theme

    
    require( 'class-form-generator.php' );
    

    – Open class-form-generator.php file in your child theme and find

    
    echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({
    

    – Add following code right below that line

    
            minDate: +3,
            beforeShowDay: function(date) {
            var day = date.getDate();
            return [(day)];
            },

    Best regards,
    Yigit

    #884652

    Hallo, es funktioniert. Vielen Dank. Beste Grüße, Christian

    #884653

    Hallo,

    Wunderbar! Bitte schön :)

    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 start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Datepicker’ is closed to new replies.