checkbox label - link

2 replies · opened Aug 25, 2019

RrdetwilerAug 25, 2019

Hi Canvas,

I have another form question. What inline css can I add so that this link in the label works?

<div class='form-check'>
<input class='form-check-input' type='checkbox' value='' id='defaultCheck1' checked>
<label class='form-check-label' for='defaultCheck1'>
Yes, I agree to the terms of use
</label>
</div>

Currently clicking anywhere in the label toggles the checkbox. I want "terms of use" to link to the t&c page instead of toggling the checkbox, but the css seems to prohibit my tags.

What inline css can I add so that this link in the label works?

Thanks!

SSemicolon WebSTAFFAug 26, 2019

Hello,

Removing the for='defaultCheck1' Attribute in the <label> will fix this for you.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

RrdetwilerAug 26, 2019

Yes, that worked perfectly.

Thank you very much

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard