# Formtastic options

**URL:** <https://www.ruby-forum.com/t/formtastic-options/194876>\
**Category:** Rails\
**Created:** [September 13, 2010, 12:11am UTC](https://www.ruby-forum.com/t/formtastic-options/194876 "2010-09-13T00:11:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 13, 2010, 12:11am UTC](https://www.ruby-forum.com/t/formtastic-options/194876/1 "2010-09-13T00:11:14Z")

</div>

Hello,

I’m looking at formtastic options but I cannot see how I can add some  
HTML beside the input field.

I have select tag and I and to allow the visitor to add some text in it.

Those buttons “add new text” should be below the select box.

But I cannot see that formtastic allow you to add any HTML to the input  
field?

Do I need to modify formtastic sourcecode to allow that to myself?

Regards,  
/Jamal

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 13, 2010, 5:40am UTC](https://www.ruby-forum.com/t/formtastic-options/194876/2 "2010-09-13T05:40:00Z")

</div>

:input\_html =\>{ options hash here }

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 13, 2010, 10:48am UTC](https://www.ruby-forum.com/t/formtastic-options/194876/3 "2010-09-13T10:48:07Z")

</div>

radhames brito wrote:

> :input\_html =\>{ options hash here }

input\_html is only for id, class…some html paramtere for input field.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 13, 2010, 2:39pm UTC](https://www.ruby-forum.com/t/formtastic-options/194876/4 "2010-09-13T14:39:41Z")

</div>

sorry i thought you wanted to add some html options , but now that i  
read  
again i see you want to add more html to the output.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 13, 2010, 9:59pm UTC](https://www.ruby-forum.com/t/formtastic-options/194876/5 "2010-09-13T21:59:15Z")

</div>

radhames brito wrote:

> sorry i thought you wanted to add some html options , but now that i  
> read  
> again i see you want to add more html to the output.

Nobody knows how to create custom input field with formtastic.

I thought this plugin was known around.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 13, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/formtastic-options/194876/6 "2010-09-13T22:09:21Z")

</div>

sorry i meant to say  
you can put normal tags in it i have and is works.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 13, 2010, 10:08pm UTC](https://www.ruby-forum.com/t/formtastic-options/194876/7 "2010-09-13T22:08:11Z")

</div>

you can out nor mas tags in it i have and is works.

this in the view

check\_box\_tag :thing

in the controller

item.thing = params[:thing]

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 14, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/formtastic-options/194876/8 "2010-09-14T14:14:33Z")

</div>

there is a plugin to make formtastic work with calendar\_date\_select go  
and  
check the code of the plugin since it does what you want.

i bet you can figure out how to do it by checking it out.

---

<div class="post-metadata">

**Author:** ![jamal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/35a633/32.png) [@jamal](https://www.ruby-forum.com/u/jamal)\
**Post date:** [September 14, 2010, 11:33am UTC](https://www.ruby-forum.com/t/formtastic-options/194876/9 "2010-09-14T11:33:54Z")

</div>

radhames brito wrote:

> sorry i meant to say  
> you can put normal tags in it i have and is works.

i want to add more html to the select field.

like to buttons to add and remove from the select field.
