Adding custom HTML/drop down options to existing form

alvb 20 Sep, 2011
Good Morning,
I have a form that is working at: http://www.testousa.com/thermal/contact-us.html. I have been told now I add some additional fields that include selections from a drop down menu.

Can that be done via ChronoForms? I don't see anywhere in the Form Wizard for that kind of option.

If you want to see exactly what needs to be added, you can look at the "Additional Data" section of the following site: http://testousa.com/557/ under "Contact and Brochure."

Thanks!
🙂
GreyHead 20 Sep, 2011
Hi alvb ,

It's the Select Box element in the CFv4 Wizard.

Bob
alvb 29 Sep, 2011
So on your suggestion I updated to V4. I recreated the form, including the custom drop-down information I need. Unfortunately, it didn't work. When I select the "Branch" on the form, it should generate a list of sub choices under "Industry" like you can see on: http://www.testousa.com/557/ under "Contact." This is what I need to do and I am really struggling to get it to work. 😢
GreyHead 30 Sep, 2011
Hi alvb,

I'm sorry I wasn't suggesting that you changed to CFv4, I must have mistaken which version you were using. But the form you linked to is still in CFv3.

In the CFv3 Wizard it's a 'DropDown' that you want.

Bob
alvb 30 Sep, 2011
Hi Bob,
I am not in the office today, so I switched back to the V3 form just to be safe. ;-)

I picked the drop down, but what I need is a "two-part" process, if that makes sense. For each item in the first drop down, I need it to kick off a list in a second drop down. Kind of like an "if/then." I have a java code snippet for the second drop down, which I put in the drop down JS field under Action in V4.

Maybe this isn't possible in ChronoForms? I've been able to do everything else without a problem. It has been a great tool! I will admit I am far from a coding expert, so maybe this is just beyond my coding abilities as well.

Thanks,
Andrea
GreyHead 30 Sep, 2011
Hi Andrea,

Sorry, I misunderstood. You want a 'double drop-down' . . . there's an article from The ChronoForms book here which has an approach that will work for drop-downs where the total number of options is in the tens (or possibly hundreds); or I have a document for sale for a few dollars here that describes how to do a double drop-down using Ajax to query a database table to get the options.

Bob
alvb 13 Oct, 2011
Thank you for the information Bob. I am going to attempt the HTML route since I am not familiar with AJAX. The directions seem straightforward enough. I only have one question. Under step two where it says, "we will now edit the Form HTML to add option groups to the recipe options list" and you have a HTML snippet. My question is where does that HTML go? Is it within the original HTML?

Thanks again for all your help!
Andrea
GreyHead 13 Oct, 2011
Hi Andrea,

where does that HTML go? Is it within the original HTML?


Yes

Bob
alvb 13 Oct, 2011
Can you give me a hint where? :wink:
GreyHead 15 Oct, 2011
Hi Andrea,


I've lost track of which version of ChronoForms you are using now. From memory, in CFv3 it goes in the Form HTML where you want the drop-down to show; in CFv4 I'd put it in a Custom Code element.

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