I am building a quiz like Interface. Out of four options one will be correct and when that is selected the color/that option should be highlighted. How can I store the response and refer in the interface?

a!formLayout(
label: "",
contents: {
a!sectionLayout(
contents: {
a!boxLayout(
label: "",
contents: {
a!richTextDisplayField(
labelPosition: "COLLAPSED",
value: {
a!richTextItem(
text: {
"Q1. What is the capital of India?"
},
size: "LARGE",
style: {
"STRONG"
}
)
},
align: "LEFT"
)
},
style: "STANDARD",
marginBelow: "STANDARD"
)
}
),
a!sectionLayout(
label: "",
contents: {
a!cardLayout(
contents: {
a!cardLayout(
contents: {
a!sideBySideLayout(
items: {
a!sideBySideItem(
item: a!radioButtonField(
label: "",
labelPosition: "COLLAPSED",
choiceLabels: {
"Mumbai",
"Bengaluru"
},
choiceValues: {
True(),
false()
},
saveInto: {},
choiceLayout: "STACKED",
choiceStyle: "CARDS",
validations: {}
)
),
a!sideBySideItem(
item: a!radioButtonField(
label: "",
labelPosition: "ABOVE",
choiceLabels: {
"New Delhi",
"Chennai"
},
choiceValues: {
1,
2
},
saveInto: {},
choiceLayout: "STACKED",
choiceStyle: "CARDS",
validations: {}
)
)
}
)
},
height: "AUTO",
style: "NONE",
marginBelow: "NONE"
)
},
height: "AUTO",
style: "NONE",
marginBelow: "NONE"
)
}
)
},
buttons: a!buttonLayout(
primaryButtons: {
a!buttonWidget(
label: "Next",
submit: true,
style: "PRIMARY"
)
}
)
)

  Discussion posts and replies are publicly visible