Buy Now
Sign in

Using data from dropdowns to populate a table

pcheng , August 13 2013, 09:07
P
pcheng 41
August 13 2013, 09:07 #314897
Dear all,

I have a question about a form that I am trying to create.

I have a form created in Chronoforms which contains a list of dropdown boxes each one populated from the previous one.


What I need to do now is to add a button underneath that will add a row in a table, or div, which will include all the values that are selected in the dropdown boxes. I saw the FAQ http://www.chronoengine.com/faqs/2700-how-can-i-have-a-button-to-add-more-form-inputs.html which had a way to add new fields but I have a problem retrieving the values from the dropdown boxes to use them.

A sample run would be a user making selections from the dropdown boxes and clicking Add. A row will appear with the selections. Then he makes new selections and clicks Add again and the selections will be added in a new row below the first one.

Thanks,

Pericles
GreyHead 64
August 13 2013, 10:42 #314901
Hi Pericles,

I think that this can be done but it's going to require quite a lot of JavaScript (if you want to add the rows directly in the browser) or some PHP if you want the form submitted then re-loaded.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much