Saltar navegación

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 5 años, 11 meses. 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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por dorM hace 5 años, 11 meses.

Asistido por: Shane.

Autor
Mensajes
#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? enlace oculto

#1206486

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: 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>enlace oculto</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)