Show radio buttons


#1

Hey guys !

I have radion buttons, (type of the payment : cash or check), when i choose one of them i need to show other radio buttons ( )
I don’t have any idea how to do this ?


Radio buttons and React
#2

You could use this approach https://github.com/dalgard/meteor-viewmodel/tree/master#radio

Example code can be found here and here.


#3

Thank you for the answer, But what i have is :

2 groups of radio buttons
and what i need is to show the second group based on the choice i made on the fiirst one


#4

If you want you can look at using Autoform, then, consider using afFieldValueIs. See demo.

But, beware, current release of autoform has a bug and it is affecting afFieldValueIs. Version 5.4.0 works fine though.