Skip Navigation

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

This thread is resolved. Here is a description of the problem and solution.

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 5 years, 9 months ago. 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)

This topic contains 2 replies, has 2 voices.

Last updated by dorM 5 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#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? hidden link

#1206486

Shane
Supporter

Languages: English (English )

Timezone: 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>hidden 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)