Hi,
My form ask to user how many employees do he have (dropdown with number 1 - 50) and based on his choose I have to ask name, last name for every employee.
for example if I select 6 employees on dropdown input then I get the input text for:
name #1
last name#1
name #2
last name#2
name #3
last name#3
name #4
last name#4
name #5
last name#5
name #6
last name#6
There is a way to do this on chronoform7?
The repeater area do this but only one at times and did not have a stop when the user have complete the employees, ie. I can add more ore even less employee.
thx
Hi vestainsurance,
Personally I would do this with a multi-page form. Ask the number of employees on one page, then show the list of inputs on the next one (or maybe even on several pages in blocks of 10).
I guess you could do it on a single page using JavaScript to add/hide the input rows.
Bob
Hi Bob,
I have manage it, unfortunately I think now I have put too many fields and when I try to open the form via backend to edit I get error 500 or the page will be half load ( I see only text).
There is a way to load the page in this case or I should delete it and make a new form?
thx
Hi vestainsurance,
Are you running PHP 7.4? Someone else reported a similar problem today and said that they solved it by reverting to PHP 7.3 for editing their large forms.
Bob
Hi Bob,
Yes I was running PHP 7.4. I have tried PHP 7.3 and other but no one works for me.
So I come back with the "repeater", it doesn't matter if it can't verify if the number of employees is right.
But I have a problem, if I compile with multiple data only the last one is send to me via email, the previous nope.
I have take a look on page 26 of CF6 manual but it seams very different from CF7.
There is another manual or a working example of a email with repeater data?
Thx
Hi vestainsurance,
To be clear I have very little experience with CFv7. The Repeater area appears to have a Cloner action in the Advanced Settings where you can set the Minimum and Maximum number of clones. I have not tested but expect that these values can be set from the form data so, as I suggested earlier, using this in a multi page form should allow you to limit the number of repeats.
Bob
Hi Bob,
I Find that for sending multiple data gets form repeater you must use this format of data:
Label - label value #area_repeater_4
Field Name area_repeater_4.#area_repeater_4.label_value
Where
- area_repeater_4 is the UNIT NAME of repeater
- #area_repeater_4 give the number of the repeated element
In this way you get an email with all data, not only with the last one.