Navigation überspringen

[Gelöst] Create a required checkbox with a label, which one of the words is a link

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 5 Jahren, 11 Monaten. 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von dorM vor 5 Jahren, 11 Monaten.

Assistiert von: Shane.

Author
Artikel
#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? versteckter Link

#1206486

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: 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>versteckter Link</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)