Select an option when a value comes preloaded

I have a form B with three fields that appears when I clicked the "send" button from another form A.

a!formLayout(
label: "Form",
contents: {
a!textField(
label: "City",
labelPosition: "ABOVE",
saveInto: {},
refreshAfter: "UNFOCUS",
validations: {}
),
a!textField(
label: "Office",
labelPosition: "ABOVE",
readOnly: true,
refreshAfter: "UNFOCUS",
validations: {},
value: rule!CPRO_ER_getOffice(),
saveInto: {
a!save(ri!new.officeC,rule!CPRO_ER_getOffice())
}
),
a!radioButtonField(
label: "Type",
labelposition: "ABOVE",
choiceLabels: {
"car",
"red",
"urgency"
},
choiceValues: {
"car",
"red",
"urgency"
},
value: {},
saveInto: {},
required: true

),
},
buttons: a!buttonLayout(
primaryButtons: {
a!buttonWidget(
label: "Submit",
submit: true,
style: "PRIMARY"
)
}
)
)

the value of the first field "city" is written by hand.
the value of the second field "office" can:
- Empty if it has been sent from the previous form
-be preloaded -> I want that when it comes preloaded directly select "urgency" from the "radiobutton".
                 If it comes empty, then you can choose any of the three options.

Thanks!


  Discussion posts and replies are publicly visible