• Resolved alauro

    (@alauro)


    There seems to be an issue with the First Name field. According to the documentation First Name is supposed to be set as autocomplete=”given-name”. However, when using devtools, Chrome and Firefox, it is autocomplete=”name”. The problem is this autofills the users Full Name, not only the First Name. Needless to say my clients are complaining.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Faisal Ahammad

    (@faisalahammad)

    Hi @alauro,

    I was able to replicate the issue. You can use the following jQuery code to resolve it. This code will modify the existing “autocomplete” attribute, changing it from “name” to “given-name” as shown in the screenshot below.

    jQuery(document).ready(function($) {
        $('.firstname-container .firstname-wrap input').attr('autocomplete', 'given-name');
    });

    Give it a try and let me know how that goes! ??

    Thread Starter alauro

    (@alauro)

    Thanks for the reply @faisalahammad!

    Unfortunately the above code had no effect on the autocomplete attribute. It still comes up as autocomplete=”name”.

    Plugin Support Faisal Ahammad

    (@faisalahammad)

    You are welcome, @alauro.

    It looks like it is working fine on my end after adding the code. Can you try checking from an incognito window and see if the issue is still there? Please let me know.

    Thread Starter alauro

    (@alauro)

    @faisalahammad – No change. I’m adding the code you sent over in the footer.php file, just above the body closing tag. Could this be the reason I’m not having any luck? I left the code in if you want to reference it: https://generateaction.gener.sancsoft.net/take-action/

    • This reply was modified 11 months, 4 weeks ago by alauro.
    Thread Starter alauro

    (@alauro)

    @faisalahammad – final code that worked below:

    (function($) {
            setTimeout(function() {
                $('input[autocomplete="name"]').attr('autocomplete', 'given-name');
            }, 1000);
        }( jQuery ));

    This is a fine band aid but needs to be fixed in the plugin.

    • This reply was modified 11 months, 4 weeks ago by alauro.
    Plugin Support Faisal Ahammad

    (@faisalahammad)

    That’s great to hear! So, you were able to make it work by adding a 1000ms delay to execute the code? That’s interesting because my code was working fine without any delays. I’m not sure why it wasn’t working on your end, but I’m glad you were able to find a solution. It’s amazing to see that it finally works now!

    Shaylee

    (@shayleehansen30)

    Hello @alauro,

    If you have any other questions, please feel free to contact our Customer Success team (here). We provide support to ALL users, whether they are using Ninja Forms core or our add-ons.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Autocomplete First Name Bug’ is closed to new replies.