Support » Plugin: Contact Form 7 - Repeatable Fields » Show repeating field data in email

  • Resolved createscape

    (@createscape)


    Hello,
    I have a repeating field for contact information that looks like this:

    [field_group team id="team" tabindex:1]
    <div class="row">
    <div class="col-md-6">
    <p>Name:
    [text person-name]</p>
    </div>
    <div class="col-md-6">
    <p>Title:
    [text person-title]</p>
    </div>
    <div class="col-md-6">
    <p>Organization/Affiliation:
    [text person-org]</p>
    </div>
    <div class="col-md-6">
    <p>Program Role:
    [text person-role]</p>
    </div>
    <div class="col-md-6">
    <p>Phone:
    [tel person-phone]</p>
    </div>
    <div class="col-md-6">
    <p>Email:
    [email person-email]</p>
    </div>
    [/field_group]
    
    I have this in my email message code:
    
    

    [team]
    Team Member #[group_index]

    Name: [person-name]
    Title: [person-title]
    Organization: [person-org]
    Role: [person-role]
    Phone: [person-phone]
    Email: [person-email]

    [/team]`

    When I receive the email, it only shows the first person’s contact information. How can I see the details from the repeatable fields in the email?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Felipe Elia

    (@felipeelia)

    Hi!

    You have a missing </div> there. Try

    [field_group team id="team" tabindex:1]
    	<div class="row">
    		<div class="col-md-6">
    			<p>Name:
    			[text person-name]</p>
    		</div>
    		<div class="col-md-6">
    			<p>Title:
    			[text person-title]</p>
    		</div>
    		<div class="col-md-6">
    			<p>Organization/Affiliation:
    			[text person-org]</p>
    		</div>
    		<div class="col-md-6">
    			<p>Program Role:
    			[text person-role]</p>
    		</div>
    		<div class="col-md-6">
    			<p>Phone:
    			[tel person-phone]</p>
    		</div>
    		<div class="col-md-6">
    			<p>Email:
    			[email person-email]</p>
    		</div>
    	</div>
    [/field_group]

    and let me know if that worked, right? I’ve tested it here and received it well.

    Thanks!

    Plugin Author Felipe Elia

    (@felipeelia)

    I’m marking this as resolved due to the lack of activity here. I hope the above reply helped!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show repeating field data in email’ is closed to new replies.