Forums

Number of elements in repeater

hwsassisi 18 Jun, 2017
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
Max_admin 18 Jun, 2017
Hi,

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

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 18 Jun, 2017
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
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
hwsassisi 20 Jun, 2017
1 Likes
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.
Max_admin 20 Jun, 2017
Correct, it's because a range is created from 0 to that number, I forgot that!🙂

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.