Skip Navigation

[Escalated to 2nd Tier] Console Error – Incorrect use of

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 7 replies, has 3 voices.

Last updated by Mateus Getulio 9 months, 3 weeks ago.

Assisted by: Mateus Getulio.

Author
Posts
#2621347

Hello, all our pages that have a View with a custom search form are showing the following console error - "Incorrect use of <label for=FORM_ELEMENT> The label's for attribute doesn't match any element id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly. To fix this issue, make sure the label's for attribute references the correct id of a form field."

You can view the error in Chrome Console on your Demo Site here - hidden link - so it does not appear to be anything to do with our setup.

Thanks

#2621381

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Joel

I visited the link you shared in a couple of different browsers, and neither of them have such errors in the console.

Could you clear your browser cache, maybe try in a different browser, and perhaps share a screenshot if you still see the error?

#2621383
Screenshot.png

Hi Nigel, thanks for getting back to me. That's odd, I've tried Chrome on both Mac and Windows and both are showing the error. I've attached a screenshot on Mac in incognito mode. Hope that helps.

#2621445

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your reply.

We have double-checked it, but we're still unable to see this error message in the console tab (checked in different browsers). Can you please share a print, or perhaps even a video?

Regards,
Mateus.

#2621581

Hi Mateus,

Does this video help? - hidden link

I've tried 3 different devices (both Mac and Windows) and all show the error. The video is showing your Demo Reference Sites - https://discover-wp.com/site-templates/ - so hopefully easier for you to debug but I also get the same error on our website. I've shown on the video that the error is not limited to the one reference site. The browser used on the video is Chrome version 114.

Thanks

#2621775

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for the clarifications, now we were able to check this error.

However, it seems to be more a generic message than anything related to Toolset. I have checked that it also displays in several other sites in the web. Could you please tell me what would be your concerns about having this message? I tried to search internally, but it seems that this is the first report.

Please keep us posted. Thank you.

#2621917

Glad you've been able to confirm the error. Chrome is picking it up as a page error rather than a suggestion for improvement so I think it requires a fix. Accessibility compliance is a requirement for many organisations like ourselves so I would appreciate if this could be fixed in an upcoming update.

It looks like an 'id' that matches the 'for' attribute needs to be added to the form input, so looking at the first error in the video example, I think this would be adding the id="tour-type" to the <select name="wpv-tour-type" class="js-wpv-filter-trigger form-control"> markup - i.e. <select name="wpv-tour-type" class="js-wpv-filter-trigger form-control" id="tour-type">

I can manually do this with jQuery in the interim but would prefer it to be fixed in an update for future developments.

Hope that all makes sense, thanks.

#2621981

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for sharing this info.

It seems that the issue has been already reported in our forum: https://toolset.com/forums/topic/search-input-field-does-not-have-a-matching-label/

Your case will be added to the threads list in our internal ticket, and in the meantime, the status here will keep as escalated, while we do not have a definitive fix. Please bear in mind that we also do not have a workaround for now.

As you said, you can use JS, but it will be extensive work to apply custom Java script in every page containing a View with this problem. Hopefully it'll be addressed as soon as possible, but unfortunately we still do not have any ETA.

Thanks for your understanding.