Scenario:
Creating a new site column with Radio button choices
Solution:
Declare a field tag with Type="Choice" and then using Format option u can display it as radio button.
Code:
<Field Type="Choice" DisplayName="Gender"
Required="FALSE" Format="RadioButtons"
FillInChoice="FALSE"
ID="{8e153ed9-7960-409d-9a5c-7c3ccf204c5b}"
StaticName="Gender"
Name="Gender">
<Default>male</Default>
<CHOICES>
<CHOICE>male</CHOICE>
<CHOICE>female</CHOICE>
</CHOICES>
</Field>
2 comments:
Do you know how to make the choice items display horizontally instead of one on top of the other?
I am not 100% sure but u can try Display Pattern node to make it horizontal , otherwise write your own Field Type ( Coding )
Post a Comment