What I’m trying to do:
I am trying to capture the value of a radio button, that is in a group of 3,when selected.
The buttons are not in a column panel.
I will then capture the value in a data table
What I’ve tried and what’s not working:
def radio_buttons_selected(self):
if self.radio_button_1 or self.radio_button_5 or self.radio_button_9.selected:
if self.radio_button.selected:
print(self.radio_button.value)
If they all have the same group_name attribute (or if all your radio buttons on the form are in the same default group, with group_name left undefined), you can do:
print(radio_button_1.get_group_value())
It doesn’t matter which of the radio buttons you call this method on.