Form: btn-group checked status

1 reply·opened Mar 23, 2019
B
bharris401Mar 23, 2019

Using the new forms check boxes, is it possible to set one to "checked."
(/HTML/forms-feedback.html)

<label class="btn btn-outline-primary ls0 nott">
<input type="radio" name="dorR1" id="dorR1-1" value="1" checked> 1
</label>

I've tried adding checked to the input but nothing changes. I assume because it's inside of a label?

S
SemiColonWebSTAFFMar 26, 2019

Hello,

Simply use the following code:

<label class="btn btn-outline-success active ls0 nott">
	<input type="radio" class="required" checked name="feedback-form-cleanliness" id="feedback-form-cleanliness-5" value="Awesome"><i class="icon-grin-beam1"></i>
</label>

This will definitely work fine. Hope this Helps!

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

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