Skip Navigation

[Résolu] Checkbox in CRED user form doesn´t work as it should

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Checkbox option in CRED userform doesn't work on frontend properly.

Solution:
Please backup your site and apply this patch fix:
https://toolset.com/errata/wrong-id-in-radio-field-for-attribute-when-used-inside-conditional/

If problem still appears after applying above patch, then you can use this following JS in CRED JS editor:

jQuery(document).ready(function($){
 var i = $('#terms_and_condition').find('input').attr('id');
    $('#terms_and_condition').find('label').attr('for', i);
});
This support ticket is created Il y a 7 années. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par toolset-dave Il y a 7 années.

Assisté par: Noman.

Auteur
Publications
#587516

Hi,

I have a registration CRED user form and there is a checkbox with terms agreement. If you click directly into box, it will check, but if you click on the belonging text, nothing happens (only mouse cursor changes to hand like you click on the link). I have a JS validation for custom error here, but if I remove it, it still has the seme effect. On the other hand checkbox in CRED content form works as it should, you can click into box or on the text and the field is checked.

#587527

Noman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

Hi Dave,

Thank you for reaching out to us. Please backup your site and apply this patch fix:
https://toolset.com/errata/wrong-id-in-radio-field-for-attribute-when-used-inside-conditional/

If problem still appears after applying above patch, then you can use this workaround -- a bug is also reported to our development team in recent past, but I believe above patch may resolve this issue too:
https://toolset.com/forums/topic/being-able-to-select-the-word-next-to-the-checkbox-itself-to-check/#post-579390

I hope it helps, Thank you

#587536

Hi,

unfortunately none of the workarounds work.

#587693

Noman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

Hello Dave,

After applying patch that I have provided in my last response, please remove any custom JS you have added and check the page again if it resolves the issue or not?

If still issue arise, please provide temporary access (WP-Admin and FTP Login info) to your staging site. Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please provide front-end screenshot and highlight the field which is having this issue.

✙ Please add the Links to the [CRED Form] Edit Screen and [Page] Edit Screen where you have inserted this Form.

Thank you

#587749

Noman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

I have added following JS in CRED JS editor:

jQuery(document).ready(function($){
 var i = $('#terms_and_condition').find('input').attr('id');
    $('#terms_and_condition').find('label').attr('for', i);
});

Now it's working as expected.

Thank you

#587770

Thank you for solving my problem.