Forums

Fields loop

davidakis 26 Jul, 2013
Hi to all. I'm building a multipage form for getting the data of people who want to compete in a kind of marathon. In the first page I get the data of the sports society, and I ask how many people of this society want to run. Now on the second page I'm going to ask data for each runner (surname, name, and so on). So I thought I could post as many form fields as the number specified in the first page, with one submit option for all. Is that possible with an action such as Event Loop?

Thanks, Davide
GreyHead 26 Jul, 2013
Hi Davide,

Not with the event loop :-(

You can do it with a Custom Code action where you use PHP to loop through and create the number of sets of inputs that you need (or there is a FAQ here for an 'Add One' version).

Bob
davidakis 26 Jul, 2013
Great idea Bob. With "Add one" function each society could easily complete the form. I think I'll customize it to make it possible to add up to a hundred rows of fields🙂


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