XF 2.1 Showing/hiding form elements

mjda

Well-known member
I'm creating an addon that requires users to fill out a form.

In this form the first option is a dropdown box where the "type" is selected, then the form elements after that will depend upon which option is chosen here.

My question is, is there an easy way to show/hide certain form elements depending on what option is chosen in that first dropdown?

I wasn't able to find any examples in XenForo. Not saying there aren't any. I just couldn't find them.
 
Back
Top Bottom