# the best solution for a dynamic form in RoR

**URL:** <https://discuss.rubyonrails.org/t/the-best-solution-for-a-dynamic-form-in-ror/62510>\
**Category:** rubyonrails-talk\
**Created:** [January 26, 2012, 9:12pm UTC](https://discuss.rubyonrails.org/t/the-best-solution-for-a-dynamic-form-in-ror/62510 "2012-01-26T21:12:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [January 26, 2012, 9:12pm UTC](https://discuss.rubyonrails.org/t/the-best-solution-for-a-dynamic-form-in-ror/62510/1 "2012-01-26T21:12:13Z")

</div>

Hi,

a little newbie question about the form

I want a dynamic form similar to this

[http://www.webstyling.it/script/javascript/form/modulo%20variabile.html](http://www.webstyling.it/script/javascript/form/modulo%20variabile.html)

instead to have a drop down menu I want a radio button option

- radio button 1 - radio button 2 - radio button 3

in function of my choice (|radio button 1| OR |radio button 2| OR |radio button 3|) appear in the same page a different form

MY QUESTION

the solution is set in the app the following gems?

- simple\_form gem - jquery

thank you in advance

Cluter

---

<div class="post-metadata">

**Author:** ![Guilherme\_Dutra](https://avatars.discourse-cdn.com/v4/letter/g/ccd318/32.png) [@Guilherme\_Dutra](https://discuss.rubyonrails.org/u/Guilherme_Dutra)\
**Post date:** [January 27, 2012, 10:46am UTC](https://discuss.rubyonrails.org/t/the-best-solution-for-a-dynamic-form-in-ror/62510/2 "2012-01-27T10:46:31Z")

</div>

Hello, maybe using hide() and show() of jQuery could be a solution.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 10, 2012, 6:27pm UTC](https://discuss.rubyonrails.org/t/the-best-solution-for-a-dynamic-form-in-ror/62510/3 "2012-02-10T18:27:07Z")

</div>

thanks Guilherme

your idea it's the best solution to figure out my issue

🙂pd. I'm working on it
