x
<fieldset class="Polaris-ChoiceList">
<legend class="Polaris-ChoiceList__Title">
Company name
</legend>
<ul class="Polaris-ChoiceList__Choices">
<li>
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input type="radio" name="company_name" id="company_name_hidden" value="hidden" aria-checked="false" class="Polaris-RadioButton__Input" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
Hidden
</span>
</label>
</div>
</li>
<li>
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input type="radio" name="company_name" id="company_name_optional" value="optional" aria-checked="false" class="Polaris-RadioButton__Input" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
Optional
</span>
</label>
</div>
</li>
<li>
<div>
<label class="Polaris-Choice">
<span class="Polaris-Choice__Control">
<span class="Polaris-RadioButton">
<input type="radio" name="company_name" id="company_name_required" value="required" aria-checked="false" class="Polaris-RadioButton__Input" />
<span class="Polaris-RadioButton__Backdrop"></span>
</span>
</span>
<span class="Polaris-Choice__Label">
Required
</span>
</label>
</div>
</li>
</ul>
<div class="Polaris-ChoiceList__ChoiceError">
<div class="Polaris-InlineError">
<div class="Polaris-InlineError__Icon">
<span class="Polaris-Icon">
<svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M10 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zM9 9a1 1 0 0 0 2 0V7a1 1 0 1 0-2 0v2zm0 4a1 1 0 1 0 2 0 1 1 0 0 0-2 0z"></path></svg>
</span>
</div>
Company name cannot be hidden at this time
</div>
</div>
</fieldset>
<%= polaris_choice_list(
title: "Company name",
name: :company_name,
error: "Company name cannot be hidden at this time",
) do |choice| %>
<% choice.radio_button(label: "Hidden", value: "hidden") %>
<% choice.radio_button(label: "Optional", value: "optional") %>
<% choice.radio_button(label: "Required", value: "required") %>
<% end %>
No notes provided.
No params configured.