Add an input section

daveybones 03 Jan, 2011
Hi,
First let me say that this is one of the best joomla extentions i have seen. Very Very nice.
I hope you can help me.
Im building and Auto insurance quote form and at the part where it has vehicle information, I would like to have it kinda like this:
Vehicle 1
Make: "input box"
Model: "input box"
Year: "input box"
Body style: "input box or dropdown"

Then I would like to have an add another vehicle button so this process can be repeated for as many vehicles as the client has without having to make a cumbersome long form.

any help much appreciated and rewarded of course with beer purchase.
GreyHead 03 Jan, 2011
Hi daveybones,

This is a fairly frequent request and it's on my (lengthy) to-do list to write a tutorial. I'm afraid that there is no built in magic feature :-(

It's easy to do this if you can set a limit on the number of repeats. Include the extra forms and set them to dispay:none then un-hide the next one when a new form is requested.

There are some problems with using the ChronoForms validation with this approach - but I think that a silution was posted here to add the validation classes when the new form was displayed.

You can also use JavaScript to create a new sub-form when needed. This isn't limited in the same way but is more complex to code.

Bob
daveybones 03 Jan, 2011
Thanks for the quick reply.
Yes I could limit the number to 5-6
How can i add the forms hidden, and make them unhide when "add one" is selected.
Let me know when tutorial is made please
Thanks
daveybones 21 Jan, 2011

Im building and Auto insurance quote form and at the part where it has vehicle information, I would like to have it kinda like this:
Vehicle 1
Make: "input box"
Model: "input box"
Year: "input box"
Body style: "input box or dropdown"

Then I would like to have an add another vehicle button so this process can be repeated for as many vehicles as the client has without having to make a cumbersome long form.


Sorry i need to bump this but i absolutely have to get this done soon.
i've been searching these forums for weeks on the solution and its probably a simple one yet it eludes me.
can someone give me an example script please and i can take it from there.
here is the url for site
<!-- w --><a class="postlink" href="http://www.pricedrightinsurancequotes.com">www.pricedrightinsurancequotes.com</a><!-- w -->

I'll be donating soon as i can get this site done.
GreyHead 21 Jan, 2011
Hi daveybones,

You can try this post and the rest of that thread. It's a bit old but I think the same principles will work OK. You will see that there is a validation problem though.

Bob
This topic is locked and no more replies can be posted.