I have a series of RadioGroups with two options (Radios) 'Yes' and 'No'. I would like to make the RadioGroup required such that one of the options need to be selected.
I can set the required property of each Radio to 'true' but then both must be selected.
How do I achieve this using the DocuSign Api?
---- EDIT
This appears only to be possible using the form designer. The API appears unable to handle this requirement currently.
I've used the designer to create a template and I'm able to achieve making a radio group required with needing to pre-fill an option (which results in a poor user experience and a high chance of inaccurate data).
RadioGroupTabs = new List<RadioGroup>
{
new RadioGroup
{
DocumentId = "1",
RecipientId = "1",
GroupName = "InvestedInEISFundBefore",
RequireAll = "true",
Shared = "true",
Radios = new List<Radio>
{
new Radio
{
PageNumber = "7",
XPosition = "490",
YPosition = "277",
TabOrder = "17",
Value = "Yes"
},
new Radio
{
PageNumber = "7",
XPosition = "480",
YPosition = "277",
TabOrder = "18",
Value = "No"
}
}
}
}
I think what you want is to use the Select = true; in one and Selected = false in the other. The radioGroup automatically has logic to require exactly one radio button to be selected (thus it's not a checkbox, but a radio button!) so all you have to decide is how is the default state when the user just opens the envelope. Hope this makes sense.