How to render options in a SimpleSchema based on a selection's value?

Greetings,

I would like to know how to render a list of options using SimplesSchema based on a selection.

For example. If I have a check mark that says Reply? If the checkmark is checked meaning true, i’d like to render options below if it is set to false “unchecked” i’d like to not render the options.

Same with any other field, effectively determining which input values based on the selection of choice.

Thank you in advance.

Uff…I don’t think that SimpleSchema was made for such UI events. I would recommend you to use https://github.com/ManuelDeLeon/viewmodel/blob/master/README.md

Then you can do something like this:

<input type="text" name="reply_telephone" data-bind="visible: wantsReply"/>