Sauter la navigation

[Résolu] Create a required checkbox with a label, which one of the words is a link

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

Problem:

The issue here is that the user wanted to create a required terms of conditions checkbox with a link to the terms and conditions.

Solution:

You can do it by creating a generic field like the one below in your CRED form.

[cred_generic_field type='checkbox' field='policy']
{
"required":1,
"default":"I agree to Terms and Policy",
"label":"I agree to <a href='http://www.example.com'>Terms</a> and Policy"
}
[/cred_generic_field]

This support ticket is created Il y a 5 années et 11 mois. 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.

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 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

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

Dernière mise à jour par dorM Il y a 5 années et 11 mois.

Assisté par: Shane.

Auteur
Publications
#1206274

Tell us what you are trying to do?
i have a registration form with a Privacy Policy required checkbox:
[cred_generic_field type='checkbox' field='policy']
{
"required":1,
"default":"I agree to Terms and Policy",
"label":"I agree to Terms and Policy"
}
[/cred_generic_field]
i would like to create a link only for the word Terms. how can this be done?

Is there any documentation that you are following? yes

Is there a similar example that we can see?

What is the link to your site? lien caché

#1206486

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Dor,

Thank you for contacting our support forum.

What you can try doing is manually adding the link to the text like this.

[cred_generic_field type='checkbox' field='policy']
{
"required":1,
"default":"I agree to Terms and Policy",
"label":"I agree to <a href='<em><u>lien caché</u></em>; and Policy"
}
[/cred_generic_field]

Please let me know if this format helps.

Thanks,
Shane

#1206506

My issue is resolved now. Thank you! (your code was incomplete but i got it)