Buy Now
Sign in

Number of elements in repeater

hwsassisi , June 18 2017, 13:55
H
hwsassisi 52
June 18 2017, 13:55 #369525
Dear all,
how is possible to make a repeater with a minimum and maximum number of "repeat"?
I need a repeater having, at least, one element and no more than 5 elements.
How is possible to do this?
Thanks
Regards
admin 28
June 18 2017, 22:40 #369538
Hi,

Currently this is not possible but I have added this feature to the todo list for the next update.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
admin 28
June 18 2017, 22:41 #369539
For the minimum you can use the repeater data provider and set it to "1", that would have 1 element loaded by default.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!
H
hwsassisi 52
June 20 2017, 19:26 #369617
 1
no, setting it to 1 causes 2 elements. Setting to 0 creates 1 element.
In general, setting to "N" generates "N+1" element.
In other words, sets to "N-1" in order to have "N" elements.
admin 28
June 20 2017, 22:34 #369628
Correct, it's because a range is created from 0 to that number, I forgot that!

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!
Did you try the new ChronoForms7 ? if yes then please send us your comments!!