ms-ChoiceField


ms-ChoiceField - radio

Also known as a radio button.


<div class="ms-ChoiceField"> 
<input type="radio" id="better_radio1">
<label for="ms-ChoiceField-field">
   <span class="ms-Label"
      my text
   </span>
</label>
</div>

To display a radio button that is disabled and cannot be enabled use

<input class="ms-ChoiceField-input" type="radio" id="better_radio1" disabled> 


ms-ChoiceField - checkbox


<div class="ms-ChoiceField"> 
<input type="checkbox" id="better_checkbox1">
<label for="ms-ChoiceField-field">
   <span class="ms-Label">
      my text
   </span>
</label>
</div>

To display a checked box that cannot be unchecked use

<input class="ms-ChoiceField-input" type="checkbox" id="better_checkbox1" checked=""> 


Disabled Attribute

<input class="ms-ChoiceField-input"> 
<input type="checkbox disabled">

Is Required Class

This adds a red star

<label for="ms-ChoiceField-field"> 
   <span class="ms-Label is-required">
      mytext
   </span>
</label>


© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext