Shoekrates

Formbuilder: allow html in label

Recommended Posts

Hi,

I want to add a checkbox to my contact form to have users confirm that they have read the privacy policy before sending the form.
In the label of the Checkbox I want to add a link to the privacy statement page. But HTML isn't rendered, it apears as text output in the label.

How can I allow html in formbuilder checkbox labels?

Thanks for a hint.

Share this post


Link to post
Share on other sites

My thought is that you could use a hook  to add the html into the rendering of the Inputfield, or maybe you could add a Markup field in FormBuilder so you can place this link, right bellow the checkbox. 

Share this post


Link to post
Share on other sites

I usually use a simple checkbox and an adjacent Markup field with all the text and links and other BS(sorry). Works great and everybody can edit the text if necessary.

checkbox-markup.png.5ea83035611ca81745be1796d17b8acf.png

  • Like 1

Share this post


Link to post
Share on other sites

Thanks to all. I built something similar as Klenkes' solution by adding the Markup CKEditor module to pw.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.