jamal
#1
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
jamal
#2
:input_html =>{ options hash here }
jamal
#3
radhames brito wrote:
:input_html =>{ options hash here }
input_html is only for id, class…some html paramtere for input field.
jamal
#4
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.
jamal
#5
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.
jamal
#6
sorry i meant to say
you can put normal tags in it i have and is works.
jamal
#7
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]
jamal
#8
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.
jamal
#9
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.