Foreach loops
How to loop over dynamic form data inside your E-mails to retrieve user input inside the email body content.
Last updated
Team member #1: Bill Gates
Team member #2: Steve Jobs
Team member #3: Elon Musk
Team member #4: Mark Zuckerbergforeach(option;loop):
#<%counter%>: Label: <%label%> / Value: <%value%><br />
endforeach;foreach(option;loop):
#<%counter%>: <%value%><br />
endforeach;foreach(option):
{options_list}
endforeach;foreach(file;loop):
<strong>Name (<%counter%>):</strong> <%name%>
<strong>URL (<%counter%>):</strong> <%url%>
<strong>Extension (<%counter%>):</strong> <%ext%>
<strong>Type (<%counter%>):</strong> <%type%>
<strong>ID (<%counter%>):</strong> <%attachment_id%>
endforeach;foreach(file;loop):
<strong>File <%counter%>:</strong> <a href="<%url%>"><%name%></a>
endforeach;foreach(file;loop):
<img src="<%url%>" style="max-width:200px;max-height:200px;" /><br />
endforeach;