• Resolved rscarter1

    (@rscarter1)


    Great plugin, truly. Thanks!
    On our forms pages which are multi-page Gravity forms, the forms are not functional when switched to Spanish – you can’t get to the next page.
    Any ideas/tips?
    Thanks

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

Viewing 1 replies (of 1 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    I have checked and here is what I have noticed:

    When on original page the HTML code for Begin/Next/Previous buttons looks like this:

    <div class="gform_page_footer top_label">
        <input type="button" id="gform_previous_button_11_12" class="gform_previous_button button" value="Previous">
        <input type="button" id="gform_next_button_11_12" class="gform_next_button button" value="Next"> 
    </div>

    After translation it becomes this:

    <div class="gform_page_footer top_label">
        <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"><input type="button" id="gform_previous_button_11_12" class="gform_previous_button button" value="Anterior "></font></font>
        <font style="vertical-align: inherit;"><font style="vertical-align: inherit;"><input type="button" id="gform_next_button_11_12" class="gform_next_button button" value="Siguiente"></font></font> 
    </div>

    Please note the extra font tags.

    However the event listeners for the button clicks are setup in a way that they do not expect the extra font tags and that is why it does not work:

    /wp-content/plugins/codemonkeys-hipaa-forms/js/script.js – check the code below comment /*** OVER-RIDE GRAVITY PREVIOUS/NEXT BUTTONS TO SHOW/HIDE INSTEAD OF RELOAD PAGE, DEFAULT FORM SUBMIT TO SELF ISN’T PROTECTED & NOT COMPLIANT! ***/

    jQuery(document).on('click', '.gform_previous_button, .gform_next_button', function(e) {
            var form = jQuery(this).closest('form');
            var formId = form.attr('id');
            var thisPage = jQuery(this).parent().parent();
            var pages = form.find('.gform_page');
            var pbPercent = Math.floor(100 / pages.length);
            var progressBarTitle = form.find('.gf_progressbar_title');
            var progressBar = form.find('.gf_progressbar_percentage');
            var stepsWrapper = form.find('.gf_page_steps');
            var direction;
    ...
    

    I see problems with this line var thisPage = jQuery(this).parent().parent();

    It seems to be an extra plugin you use on top of Gravity.

    You may contact the plugin developer and ask for a solution, so that event listeners are properly setup.

    Alternatively you can use our paid version which does not use extra font tags: https://gtranslate.io/#pricing

    Thanks! 🙂

    • This reply was modified 4 years, 10 months ago by edo888.
Viewing 1 replies (of 1 total)

The topic ‘Trouble with Gravity Forms’ is closed to new replies.