Forum

Thread tagged as: Question, Problem, Forms

Radio button set to checked by default

Hi, I have 2 radio buttons "Yes" and "No". Is there a way to set one as "checked" by default. Normally you can do this with checked="checked" if you have a list of radio inputs. Not sure how/if this can be done here.

<perch:input id="interested" label="Interested" type="radio" options="Yes|yes,No|no" class="radio" wrap="div.radio"/>
Shawn North

Shawn North 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, one should ideally be selected by default. Try setting the value

value="yes"

Perfect. Thanks!