Hi,
I am using below code for radio button setup, however after selecting any value from radio button , i click anywhere (click outside of radio button area) on screen it deselect automatically.
a!radioButtonField( label: "Type of Maintenance", labelPosition: "ABOVE", choiceLabels: {"Scheduled", "Unscheduled"}, choiceValues: {true, false}, saveInto: ri!maintenance.maintenancescheduled, required: true, choiceLayout: "COMPACT", choiceStyle: "STANDARD", validations: {})
Thanks in advance!!
Discussion posts and replies are publicly visible
Hi , you have not configured value parameter of the radio button. Set the value parameter then it will work.
pravendrak0001 said:choiceValues: {true, false},
apart from this.
Use below code,
a!radioButtonField(
label: "Type of Maintenance",
labelPosition: "ABOVE",
choiceLabels: {"Scheduled", "Unscheduled"},
choiceValues: {true, false},
value:ri!maintenance.maintenancescheduled,
saveInto: ri!maintenance.maintenancescheduled,
required: true,
choiceLayout: "COMPACT",
choiceStyle: "STANDARD",
validations: {}
)
It works. Thank you for your help !!