# Radio Button Group Selected

**URL:** <https://forum.inductiveautomation.com/t/radio-button-group-selected/56852>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 4, 2022, 4:05pm UTC](https://forum.inductiveautomation.com/t/radio-button-group-selected/56852 "2022-03-04T16:05:35Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Ros\_Alexander](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Ros\_Alexander](https://forum.inductiveautomation.com/u/Ros_Alexander)\
**Post date:** [March 6, 2022, 12:40pm UTC](https://forum.inductiveautomation.com/t/radio-button-group-selected/56852/10 "2022-03-06T12:40:40Z")

</div>

This is what I came up with:

```auto
dieIDInput = event.source.parent.getComponent('Formatted Text Field').text
conditionInput = event.source.parent.getComponent('Group').components
for components in conditionInput:
	if components.selected == True:
		conditionInput = components.text
	
repairInput = event.source.parent.getComponent('Group 1').components
for components in repairInput:
	if components.selected == True:
		repairInput = components.text

comments = event.source.parent.getComponent('Text Area Comments').text

# A call to our Named Query, inserting the parameters using dictionary syntax.
system.db.runNamedQuery("Die Inspection", {"dieIDInput":dieIDInput, "conditionInput":conditionInput, "repairInput":repairInput, "comments":comments,})

```

Thank you both for all of the help. Sorry for the poor posting early on as this was a first for me.

---

_[View the full topic](https://forum.inductiveautomation.com/t/radio-button-group-selected/56852)._
