Radio button with Boolean not working

Certified Senior Developer

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