This support ticket is created vor 7 Jahren, 1 Monat. There's a good chance that you are reading advice that it now obsolete.
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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
I styled my checkboxes in a CRED-form with CSS and hided the checkbox-input-field. Because the for-tag of the label did match the input-ID, the label was clickable to check the checkbox. But after my last Toolset-Update unfortunately the two don't match anymore, so my checkbox-labels aren't clickable anymore.
So for example, my checkbox-code for my "services"-checkboxes in CRED itself looks like:
<div class="cred-field cred-field-anfr-services">
<label class="cred-label">Welche unserer Services möchten Sie in Anspruch nehmen?</label>
[cred_field field='anfr-services' post='anfragen' value='' urlparam='']
</div>
Please note, that the id of the input is "form-2083481400", but the for-attribute of the label is "3c20". They should match. Otherwise it wouldn't make any sense.
So I assume, this is a bug?
Please for help!
PS: If you wanna see it in action, please
* go to versteckter Link
* scroll down to one of the listet rooms
* click on "ENQUIRY"
* and in this enquiry-form all of the checkbox-labels aren't clickable!
Hello. Thank you for contacting the Toolset support.
Well - I've checked with my test install and checked with checkboxes field having three options. When I've added the checkboxes field to CRED form I got following markup for checkboxes field with th:
As I'm not able to reproduce the issue - could you please make sure:
- You are using latest Toolset plugins and ALL Toolset plugins are updated.
- If ALL plugins are updated, could you please try to regenerate the form field and try to resolve your issue.
I tried, what you suggested. All my plugins are up-to-date. And I also tried to disable all plugins (except the Toolset ones) and switched to Toolsets original starter-template. Didn't change anything. Same strange for-attributes in my labels.
In the meanwhile I found out, that everything's working fine, if I'm placing the exact same CRED-form anywhere else on my page – then the for-attribute fits the input-id! But I need my form in a bootstrap-modal-window and there – suddenly – the for-attribute changes.
I tested my site with deinstalled bootstrap (I deleted the bootstrap-folder in the toolset-starter-theme). Then the label-attributes are correct again. So I assume that there is a problem with the bootstrap-compatibility?
Can you confirm this?
Could you please try to place your CRED-form in a modal-window?
I placed the modal in a content-template and the link to the modal in a page. Both placed in different rows of a layout. Anyway I don't think it's really relevant, where you place the modal-window, because I tried out many ways – all with the same output.
My Bootstrap-version:
Bootstrap 3.3.7 from Toolset Starter theme.
Please have a look. I'm curios to see if this is happening in my environment only. But if you are getting the same behavior, just delete the class "modal" from the modal-code – then the attributes are changing back again to the correct id.
Yes - thank you for sharing all required information. I'm able to reproduce the issue and I've escalated it to next Devs, I'll get in touch with you as soon as I know more.
Could you please update ALL Toolset plugins to it's latest official released version and try to resolve your issue. The current CRED version is 1.9.3 and it should resolve the issue.