Creating new website with CF6 repeater fields

fr fribse 16 Apr, 2019
Hi all
​
I know there is quite a few posts about the repeater area, but I can't figure out what I'm doing wrong, I get the usual newbie result with only the last entry shown in the mail or none of the repated fields.
First of is the view, this is my repater area
​
Creating new website with CF6 repeater fields image 1
Then I have 1st field in the repater area (I have 4) (I have removed the 'Include value in email, so that it doesn't show the last entered):
Creating new website with CF6 repeater fields image 2
​
Then in the actions, I have a loop:
Creating new website with CF6 repeater fields image 3Which is followed by this email:
Creating new website with CF6 repeater fields image 4
​
I'm probably doing this all wrong, it has been some time since I last used chronoforms, and I've never used v6 :-)
So please help me getting this working :-)
he healyhatman 16 Apr, 2019
1 Likes
Is this in CC or CF?
​
In the loop body:
Antal: {var:loop5.row.antal}
​
​
Then in the email you use the name you've actually given the loop, so {var:Orderlines}
fr fribse 17 Apr, 2019
Hi healyhatman
​
Thankyou for your help. This is ChronoformsV6.
So as I understand your post, the 'repeater_area' and the 'text fields' are correct?
​
And I should look for the problem in the loop and email actions?
​
loop body:
So I should refer to the loop, and not the data source here?
And why loop5?
​
In the email action, I've entered this in the body:
​
<h1>ORDRE</h1><br/>
<br/>
{AUTO_FIELDS}<br/>
<br/>
{var:orderlines}
​
When I receive the mail, I get 8 repeats of the 4 fields that is entered on each repeat, and no values for them. This is despite I only enter two lines in the form
Antal: 
Type: 
Størrelse: 
Process:
he healyhatman 17 Apr, 2019
1 Likes
Loop5 because it's the little label in black on the loop.
​
Turn off auto the auto email opton for the repeater fields.
fr fribse 17 Apr, 2019
I don't have auto-email options in the repeater fields, only in the "header" fields.
​
Ok, so the loop5 is called orderlines (it's shown as that in black after doing a reopen of the form).
Loopbody now looks like this:
​
Antal: {var:orderlines.row.antal}<br/>
Type: {var:orderlines.row.type}<br/>
Størrelse: {var:orderlines.row.stoerrelse}<br/>
Process: {var:orderlines.row.process}<br/>
​
​
But with the change in the loopbody, I now get some text out, though not really any sensible data:
​
Antal: 3
Type:
Størrelse:
Process: Antal:
Type: Text1
Størrelse:
Process: Antal:
Type:
Størrelse: 12
Process: Antal:
Type:
Størrelse:
Process: CAntal: 2
Type:
Størrelse:
Process: Antal:
Type: Text2
Størrelse:
Process: Antal:
Type:
Størrelse: 15
Process: Antal:
Type:
Størrelse:
Process: I
​
So this is two lines.
As I read it, I get a full set of four lines, for every field given, but only one field is filled in.
So the first 4 lines, I get 'antal', in the next 4 lines, I get 'Type', then 'Størrelse', and finally 'process'
​
It's getting closer, but I'm still doing something wrong here 😲
he healyhatman 17 Apr, 2019
1 Likes
Put this in the loop body.
{var.pr:loop5.row}<br>---------------------<br>
Then you will see all the data available in each loop.
fr fribse 18 Apr, 2019
I thought I posted this last night, but I must've forgotten it, I got i working, it was the repeater are name I had misunderstood.
So I've placed all the fields in a nice table in the email.
​
Thankyou very much for your help!
This topic is locked and no more replies can be posted.