Guys,
I cannot seem to find documentation on how to create radio buttons and groups. Do you guys have any examples or documentation that you can point me to?
April 25Created
January 21Last Updated
5 years agoLast Reply
3Replies
283Views
2Users
0Likes
0Links
Duo_Liang | Posts: 3776
Reply to: Examples of Radio Buttons with groups
Thursday, April 25, 2019 at 09:26am
0
votes
Hi Ryan,
I had a blog Creating a Radio Button Field describing how to create Radio Buttons in Rest and SDK methods.
This is the .Net SDK code:
Field radio1 = FieldBuilder.RadioButton("group1")
.WithId(("signer1_group1_radio1")
.WithName(("signer1_group1_radio1")
.WithSize(15,15)
.OnPage(0)
.AtPosition(100,100)
.WithValue(true) //selected by default
.WithValidation(FieldValidatorBuilder.Basic().Required()) //add a required validator
.Build();
Hi Ryan,
Yes, exactly as you understood, the enum field is used to identify which group current field belongs to.
To note, since fields are only bound to the specific signer so same as radio group, different signer with same group name won't cause ambiguity for OneSpan Sign. (although it's not suggested)
Duo
Reply to: Examples of Radio Buttons with groups
Thursday, April 25, 2019 at 09:26amReply to: Examples of Radio Buttons with groups
Friday, April 26, 2019 at 04:53amReply to: Examples of Radio Buttons with groups
Friday, April 26, 2019 at 05:05am