CheckBox Template repeater


I would like to use checkbox as a template in vision and it will be repeated as per the selection in a radio button.

For eg: If i have selected 'Equipment Failure' , i should be able to select only one option from subcategory which is a repeater.
Currently multiple selection is possible which i would like to restrict.
Any ideas to achieve this?

Radio buttons are tied to each other if they're in the same container. Because yours are all container in their own template, they are all independent. I don't think you'll be able to use the default functionality, you will probably need to read the current state into your radio button template and fire a script to deselect the buttons that aren't on

Add this script to your checkbox's actionPerformed script, and you should get the effect you want:

for component in event.source.parent.parent.getComponents():
	for subComponent in component.getComponents():
		if subComponent != event.source:
			subComponent.selected = False
1 Like

Using checkboxes for that functionality is bad GUI design and will cause confusion.

  • Radio buttons are "interlocked" and one and only one can be selected.
  • Checkboxes are independent and multiple (or none) can be selected.

You should be using radio buttons for the sub-categories as well.

1 Like

I totally missed the mention of check boxes, haha. I just assumed they were radio buttons.