• Resolved childledj

    (@childledj)


    Hello
    Thanks for great plugin and I have one global question:

    I’ve use Caldera Forms and in regular fields Date and Time picker works great,
    but when fields are hidden by rule before check some option – date picker do not works
    It is appears in russia language only but in english it works fine whenever the fields are hidden or not

    I have already change Language options in D&T P settings – nothing helps! Hope you will!

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Carlos Moreira

    (@carlosmoreirapt)

    Hi @childledj
    Thank you for sharing the link! I’m here to help.
    I see the field working in a lightbox, but not sure what to look for. Is there a field that will display according to the value on another? Can you describe the steps so I can reproduce the error?
    Greetings, Carlos

    Thread Starter childledj

    (@childledj)

    Hi Carlos, now if you will switch language to RU in top right corner of the website, and then try to open ?Сделать заявку? (“Book meet & greet” in english) the field with date and pick will stop working

    Carlos Moreira

    (@carlosmoreirapt)

    There must be something different between the forms, not sure what, but to solve the problem you could manually trigger the datetime picker script.
    You could use this custom js somewhere on your page:

    jQuery('#fld_6001418_2-wrap label').one('click',function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    This would trigger the datepicker when the conditional checkboxes are clicked. Seems to solve the problem on the tests I did.
    Hope it helps.
    Greetings, Carlos

    Thread Starter childledj

    (@childledj)

    my theme has no header, where I need to insert code?
    or how can I hide it from view??

    You can also add it in the footer.php file of your template.
    Preferably in the child theme.

    <script>
    jQuery('#fld_6001418_2-wrap label').one('click',function(){
    setTimeout(function(){ dtp_init(); },500);
    });</script>
    Thread Starter childledj

    (@childledj)

    I have npo footer too…
    I’ve added `<script>jQuery(‘#fld_2659071_2’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);</script> ` and trying #fld_2659071_2-wrap but nothing ((((
    And I really do not understand why English version is works fine

    You can add it to the file assets > js > dtpicker.js of the plugin (without the script tags), as a last resource, but if you do this, you can’t update the plugin.

    Unfortunately I’m not sure why this is happening so I can’t help much more. But the custom code should solve the problem from the tests I did.

    Thread Starter childledj

    (@childledj)

    Do I need insert my field id (fld_2659071_2) ? and what if this issue will appear more than in one fields?

    Thread Starter childledj

    (@childledj)

    I have added your code in везшслукюоы and it works!! Thank you

    Thread Starter childledj

    (@childledj)

    I have added your code in dtpicker.js and it works!!

    In “MultiLeg flight” datepicker works in 1st leg and didn’t work in other (in russian – in english version it works everywhere

    – So I’ve added

    jQuery('#fld_5546680_1-wrap label').one('click',function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    – It for the second leg and it became works!

    jQuery('#fld_4428846_1-wrap label').one('click',function(){
    setTimeout(function(){ dtp_init(); },500);
    });
     - 
    jQuery('#fld_2281096_1-wrap label').one('click',function(){
    setTimeout(function(){ dtp_init(); },500);
    });
    
    jQuery('#fld_584631_1-wrap label').one('click',function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    – Last thre for the third^ fourth and fifth legs and it didn’t work ??

    • This reply was modified 4 years, 11 months ago by childledj.
    Thread Starter childledj

    (@childledj)

    Finally I have used this construction in functions.php
    and dtp in Date & Time fields works only for first and second leg… in russian version
    But in english every every D&T fields works correctly
    And I have no idea WHY???

    Here is the example page with this form: https://aeroops.ru/mlf/

    ?> <script>

    jQuery(‘#fld_5546680_1-wrap label’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    jQuery(‘#fld_2281096_1-wrap label’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    jQuery(‘#fld_6001418_2-wrap label’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    jQuery(‘#fld_8926638_2-wrap label’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    jQuery(‘#fld_6001418_1-wrap label’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    jQuery(‘#fld_4428846_1-wrap label’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    jQuery(‘#fld_584631_1-wrap label’).one(‘click’,function(){
    setTimeout(function(){ dtp_init(); },500);
    });

    </script>

    <?php

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Caldera Forms and language issues’ is closed to new replies.