x
1
2
3
4
5
6
7
<form class="new_person" id="new_person" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="1lABdbLOCJiEkErt_2KjlwrAoJ9noTXP3NaAok5Hj-I7_29hALyjC9nXJ1nFxSzewYkLSYsTY9wdU41qd-JTQA" autocomplete="off" />
<div class="rpf-input-field"><label for="person_berry" class="rpf-label">Sort by<small class="rpf-label__hint">Please select which berry to sort by</small></label><select id="person_berry" name="person[berry]" class="rpf-input rpf-input-select"><option value="">Please select</option>
<option>Raspberries</option>
<option>Gooseberries</option>
<option>Blueberries</option>
</select></div>
</form>
1
2
3
4
5
6
7
<%= form_for model, url: '#', builder: DesignSystem::FormBuilder do |f| %>
<%= f.rpf_select_input :berry, include_blank: "Please select", modifiers:, **attrs do %>
<option>Raspberries</option>
<option>Gooseberries</option>
<option>Blueberries</option>
<% end %>
<% end %>
Param Description Input

Is the input disabled?

Is the input read-only?

Show a validation error