Buy Now
Sign in

Using Repeater Area

Austre , May 25 at 12:36
Austre

I would like an explanation Hot To use Repeater Area!

admin

Hi Austre,

Please check this:
https://www.chronoengine.com/faqs/74-chronoforms6/5290-how-to-use-the-repeater-area.html

But please note that the latest release has a bug which will stop the multiplier feature from functioning as expected, if you need a fix then please send me a message using the contact us page.

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

E
Elitakey

Hello, Max, I sent you the message abut the patch but did not receive it yet. Elita

admin

Hi Elita,

Just sent it!

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

E
Elitakey

Hello, Max, thank you for the patch. Unfortunately, there are no changes :(

admin

Hi Elita,

Please set the button color to green and remove the "Container class".

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

E
Elitakey

Thanks, Max, is it possible to get the remove button too? And where can I style this?

Attachments
form9.jpg
form9.jpg
(106.05 KiB)
463 Downloads/Views
admin

Hi Elita,

Just use class:multiply and class:remove in the button settings and that will configure them to do a multiple or remove.

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

E
Elitakey

Hello, Max. Everything works like charm except the Remove buton. Any suggestions?



Attachments
form_button.jpg
form_button.jpg
(101.22 KiB)
459 Downloads/Views
form_button1.jpg
form_button1.jpg
(94.9 KiB)
461 Downloads/Views
E
Elitakey

Just a suggestion - how can I get Font awesome icon instead of text for that button?

E.g. <i class="fa fa-plus-square-o"></i>

E
Elitakey

Another question - How do I configure Repeater in CF6 for DB Save?

admin

Hi Elita,

The remove button is inside the "body" of the repeater ?

You can use the semantic icons:
https://semantic-ui.com/elements/icon.html

I will update the FAQ below to describe the saving process:
https://www.chronoengine.com/faqs/74-chronoforms6/5290-how-to-use-the-repeater-area.html

Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

E
Elitakey

No, the remove button is in the footer. Should it be in the "body"?

E
Elitakey

It works. By placing the remove button in the "body" area it started to work.

Attachments
form_button2.jpg
form_button2.jpg
(25.36 KiB)
431 Downloads/Views
E
Elitakey

So. To resume:

To add the "Add" button, place the button in the Repeater Footer area, change it to Button, Add class: multiply in the Advanced Extra Attributes tab.

To add the "Remove" button, place it at the end of the Repeater Body area, change it to Button, Add class: remove in the Advanced Extra Attributes tab.

If you want to style those buttons with icons, use semantic icons with the link above. To have the icons in the center, I added code: style="display:block; margin: 0 auto;"

h
hwsassisi

Dear all,
I'm trying to use a Repeater (see attachment) where I added a button with "class:multiply" and another button with "class:remove" in Advanced Extra Attributes tab, but it doesn't work.
Where I'm mistaking?

Attachments
myrepeater.jpg
myrepeater.jpg
(120.17 KiB)
413 Downloads/Views
E
Elitakey

Dear hwsassisi, did you get the patch from Max? And did you enable content multiplier in Repeater area settings?

h
hwsassisi

Dear elitakey,
content in repeater are setting is enabled (as you can see in my previous attached screenshot) but I didn't get any patch from Max
Please Max, could you send me the patch?
Rergards

d
davideiandoli75

Hi Max,
I'm trying to use the repeater area in this way. I need 10 text fields, and each one should be named "squadra[n]";

I put the repeater, and configured "Data provider" as 10; in the body I put a text field in which I set these parameters:

Label => Squadra[n] (it should be good to view the number also in the label);
name => squadra[n], ID =>squadra[n]

Actually my form gets only last data I input. Where is my mistake?
Thanks

E
Elitakey

Hello, Max.
I followed your insturctions in
https://www.chronoengine.com/faqs/74-chronoforms6/5290-how-to-use-the-repeater-area.html

Further explanation on how to Save the Repeater data is needed, especially for this sentence:

The Loop Event data provider should be set to {data:Model} which is the paremt of the cloned items data sets, and the "Save data" daat provider should be set to {var:switch_action_name.row}, the "Save data" should be inside the "Body" section of the "Loop event" action.

1. How to set the DataBase for the Repeater? Should it be the separate database?
2. If Yes, how to connect the record from the main DB with that of the Repeater records for further reading? Should it be the special ID for that or what?
I mean - if, e.g there will be 3 Repeater records in the Repeater DB, for one record of Main Data base, how the data later could be retrieved for that record? Example - Main DB contain Record for one person that entered the infomation about domestic animals they have and Repeater DB has 3 records of cats names. How can I later know that this person entered those cats names? :)
3. Did not understand this: {data:Model} and that {var:switch_action_name.row} - how can I adjust this to my situation. If I understand corectly, Model is that i put in the Field name (Model[n][field_name]). How to interpret this: {var:switch_action_name.row}?