All things Shopify and commerce
The complete error in Google inspect: "The label's for attribute refers to a form field by its name, not its id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly.
To fix this issue, refer to form fields by their id attribute"
This is a common error on my Shopify website and as a newbie to code I have no ideal how to fix it. I've included a couple of screenshots for reference. Can someone help me out with this in layman's terms? Much appreciated!
Hi @twerg ,
This is Theodore from PageFly - Shopify Page Builder App.
The Problem: Label isn't linked to the correct box in your form. This can mess with autofill and accessibility.
The Fix:
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Theodor- Thank you for your reply. I've tried locating the label code you suggested under the "Contact.form.liquid" page but I can't seem to locate that "customer_name" code. In fact, I can't even locate the "contact [email]" code that's showing up in the error? I tried sending you a copy of the code from that page to inspect but the I get an error when I create a DM that says something about "incorrect HTML, please correct the highlighted areas". Unfortunately there are no "highlighted areas" to correct? Thoughts on next steps?
Hi Theodor- Thank you for your reply. I've tried locating the label code you suggested under the "Contact.form.liquid" page but I can't seem to locate that "customer_name" code. In fact, I can't even locate the "contact [email]" code that's showing up in the error? I tried sending you a copy of the code from that page to inspect but the I get an error when I create a DM that says something about "incorrect HTML, please correct the highlighted areas". Unfortunately there are no "highlighted areas" to correct? Thoughts on next steps?
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025