Posted: February 8, 2018 at 5:38 pm
|
On proceeding to Registration and beginning to enter information, the registration is copying the first and last name of the sponsor into the first and last name of the first attendee. See screenshot: https://gyazo.com/8b3bd1af64bc26a2c94443fc5e54c21e Thanks, Laura |
|
Just realized that I believe it is the autofill that is doing this action. Is there any way to disable autofill? |
Hi there, I’ve not seen it where the Browser’s autofill will populate more than one form on a page, are you sure it’s not the checkbox option next to “Use Sponsor #1’s Information for ALL Sponsor Information”? That option can be removed by uploading a blank file to your WordPress theme’s directory. The name of the blank file must be |
|
|
It’s the autofill. I threw a pic up in the media bin: http://184.154.244.76/~tocift07/wp-content/uploads/2018/02/IMG_0514.jpg |
|
It is just the first form, but it’s not a good thing. They will have to change the name if they use the autofill. |
The reliable way to disable autofill is disable it within the browser’s settings panel. Which you can’t do that for each of their computers obviously. You can also try setting an autocomplete=off attribute on each of the form field inputs, which most browsers should respect, but apparently some browsers will ignore it. This code will add the attribute:
You can add the above to a functions plugin. |
|
|
I added the code and it didn’t work with my Chrome browser. That is a highly used browser. Can you check the code and see if I did anything wrong? Here is all the code in my functions.php in my child theme folder: <?php // This is an array of original strings // See if the current string is in the $strings array return $translated; add_filter( ‘gettext’, ‘mycustom_filter_gettext’, 10, 3 ); //Filter the ‘Return to Event List’ text. add_filter( add_action(‘wp_enqueue_scripts’, ‘my_autocomplete_off_for_ee_forms’, 20); Thanks! Laura |
Hi Laura, I’m afraid I cannot verify the code because of the way the forums reformat it. The code itself may be okay, and the problem may actually be it’s loading too late. This is because theme code executes after plugin code has already finished, so whatever you try to change can’t change because it’s done already. Can you remove the code from the functions.php file and add it to a functions plugin? If loading the code from a functions plugin still doesn’t work, can you post the code to a pastebin or GitHub Gist, then link here so we can review? |
|
|
I created the functions plugin – screenshot – and copy and pasted your code It is still not working in Chrome. Can you see if I’ve done anything wrong. Thanks! |
The above code is being output to the page – http://take.ms/20FoX And the inputs all have the attribute set – http://take.ms/GMZEw Unfortunately if Chrome chooses to ignore that attribute and allow autocomplete anyway there isn’t much we can do to prevent it. |
|
|
Ok. Thank you for trying. |
The support post ‘Problem with checkout registration’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.