Interactive places
Radio Group Place
Add single-choice questions where recipients select exactly one option from a group
A radio group place marks the options of a single-choice question in a document. The recipient selects exactly one option from the group during the signing ceremony.
Unlike a dropdown, each option is a separate mark placed independently on the document. Options that belong to the same group are mutually exclusive: selecting one clears the others.
Options
The options property lists the choices in the group. Each option carries a value, which is the value captured when the recipient selects that option.
{
"key": "billing_cycle",
"options": [
{ "value": "monthly" },
{ "value": "annual" }
]
}An option value must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Maximum 32 characters.
Positioning
You position each option individually, not the group as a whole. Address an option with a group_key:value key, where group_key is the key of the radio group place.
A billing_cycle group with options monthly and annual gives you two keys to position:
billing_cycle:monthlybilling_cycle:annual
Use those keys as placeholders in the document:
[[billing_cycle:monthly]] Monthly
[[billing_cycle:annual]] AnnualOr as fixed positions:
{
"fixed_positions": [
{ "place_key": "billing_cycle:monthly", "page": 1, "top": 300, "left": 40 },
{ "place_key": "billing_cycle:annual", "page": 1, "top": 340, "left": 40 }
]
}This lets you spread the options of one question across the document, wherever they appear in your layout.
Shape and Symbol
Two properties control how the control is drawn.
shape sets the geometry. Use circle for a round radio button (default), or square for a box that matches documents printing square options.
symbol sets the mark drawn on the selected option. Use fill for a solid mark (default), check for a checkmark, or xmark for an X. A fill symbol takes the shape of the control.
{
"shape": "square",
"symbol": "check"
}Default Selection
Use default to preselect an option when the place is displayed. Its value must match the value of one of the options in the group. If no match is found, a validation error is returned.
{
"options": [{ "value": "monthly" }, { "value": "annual" }],
"default": "monthly"
}Requirement
Set requirement to required to force the recipient to select an option before completing their action. This is the default.
Set it to optional to let the recipient skip the question. An optional group can also be cleared after the fact: the recipient clicks the selected option again to return the group to no selection.
Capturing Input
Set capture_as to store the selected option in the envelope’s captures object. The captured value is the value of the option the recipient chose, not the group key.
For a billing_cycle group captured as billing_cycle, a recipient who selects the annual option produces:
{
"captures": {
"billing_cycle": "annual"
}
}Size
The height property sets the height of each option in points (1/72 inch). The width equals the height. Must be between 8 and 40. Defaults to 20.
Attributes
The group key shared by every option of the radio group. Combined with an option's value, it forms the group_key:value key that positions that option, through a [[group_key:value]] placeholder or a fixed position (for example billing_cycle:monthly). Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "licensor_signs_here"
For a radio group place, the value is radio_group.
Always radio_group.
The set of allowed options in the group. Each option carries a value that is captured under capture_as when that option is selected. Options are positioned individually on the document using a group_key:value key.
1 property
The value captured when the recipient selects this option. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$
The symbol drawn when an option in the group is selected. fill draws a solid mark in the control's shape. check shows a checkmark. xmark shows an X.
Default "fill"
The geometry of the control. circle draws a round radio button. square draws a box, matching documents that print square options. When symbol is fill, the stamped mark takes this shape.
Default "circle"
Whether the recipient must complete this place before finishing their action. When set to required, the recipient cannot proceed without typing a value, checking the box or selecting an option, depending on the place type. When set to optional, the recipient may skip it.
Default "required"
The option selected by default when the place is displayed. Its value must match the value of one of the options in the group.
If no match is found, a validation error is returned.
1 to 32 charactersExample "monthly"
A key that stores the recipient's choice in the envelope's captures object. The captured value is the value of the option the recipient selected, or null if no option is selected. Must start with a lowercase letter and contain only lowercase letters, numbers, and underscores. Set to null to disable capture.
1 to 32 characterspattern ^[a-z][a-z0-9_]*$Example "customer_email"
The height of each radio option in points (1 point = 1/72 inch). The width equals the height.
minimum 8maximum 40Default 20Example 20
Examples
{
"documents": [
{
"places": [
{
"key": "billing_cycle",
"type": "radio_group",
"recipient_key": "customer",
"options": [
{ "value": "monthly" },
{ "value": "annual" }
],
"default": "monthly",
"capture_as": "billing_cycle",
"requirement": "required"
}
],
"fixed_positions": [
{ "place_key": "billing_cycle:monthly", "page": 1, "top": 300, "left": 40 },
{ "place_key": "billing_cycle:annual", "page": 1, "top": 340, "left": 40 }
]
}
]
}{
"key": "delivery",
"type": "radio_group",
"recipient_key": "customer",
"options": [
{ "value": "email" },
{ "value": "post" }
],
"shape": "square",
"symbol": "check",
"capture_as": "delivery",
"requirement": "required",
"height": 14
}{
"key": "newsletter",
"type": "radio_group",
"recipient_key": "customer",
"options": [
{ "value": "yes" },
{ "value": "no" }
],
"capture_as": "newsletter",
"requirement": "optional"
}