Forums

Using data from dropdowns to populate a table

pcheng 13 Aug, 2013
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 13 Aug, 2013
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
This topic is locked and no more replies can be posted.