• Resolved smithag89

    (@smithag89)


    Afte submitting the form without filling the form country code is hidden only default name is visible

Viewing 2 replies - 1 through 2 (of 2 total)
  • The plugin’s JS is not getting triggered after the second render. I fixed this by adding the following code to my site’s js file. If you don’t have a js file, you can add it within a <script> tag on your footer.php as well.

    jQuery(document).on('gform_post_render', function(event, form_id, current_page){
      jQuery(".swe_gf_phone_with_country_code").intlTelInput();
    });
    Plugin Author Sanjay

    (@sanjaywp)

    Updated js code on plugin for triggering after second render.
    jQuery(document).on(‘gform_post_render’, function(event, form_id, current_page){
    jQuery(“.swe_gf_phone_with_country_code”).intlTelInput();
    });

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Country code is not visible’ is closed to new replies.