Email receipt - ^empty:none


(Pomster09) #1

Hi guys

 

I'm doing a form with a check list. The check list has 10 options. Depending on options I want to send the user some links.

 

I've tried the ^empty:none in the recipient email html format. But when I submit I get all fields.

 

Are the keyword replacements not available in the email? Is there another way to do this?

 

Sample recipient email:

<table>
<tr style="display: %question_answer_111274_q1_0^empty:none%">
<td><strong>Bullying</strong><br />
<a href="#">#</a>
</td>
</tr>
<tr style="display: %question_answer_111274_q1_1^empty:none%">
<td><strong>Construction</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_2^empty:none%">
<td><strong>Fatique</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_3^empty:none%">
<td><strong>Office work</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_4^empty:none%">
<td><strong>H&S Management Systems</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_5^empty:none%">
<td><strong>Manual Handling</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_6^empty:none%">
<td><strong>Risk Management</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_7^empty:none%">
<td><strong>Return to Work</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_8^empty:none%">
<td><strong>Slips</strong><br />
<a href="#">#</a></td>
</tr>
<tr style="display: %question_answer_111274_q1_9^empty:none%">
<td><strong>Stress</strong><br />
<a href="#">#</a></td>
</tr>
</table>

(Anthony) #2

I think maybe you need %response... rather than %question_answer.

I have this in one of my email bodies..... uses eq rather than empty but it definitely works

 

%response_18724_q1^eq:Two teams:You have registered two teams%

 

I seem to remember there are several variations of the keyword syntax for forms and theres inconsistency between the different places you use them as to which works.


(Pomster09) #3

Thanks Anthony, I did change it to response but still got nothing. It works no problem when I use that on any other page, but doesn't work in the email body (which is a wysiwyg). As you can see I'm trying to hide the table row is the answer is empty. Cheers


(Pshakhovskoy) #4
You've probably worked something out, but for record keeping, try
 
style="display: %xxxxx^empty:none;% display:%xxxx^empty:none !important;%".
 
Depending on you mail client, you need both of these. From memory Outlook ignores one, and needs the other, and most other mail clients need the other one.
 
If empty still doesn't work (it should), use 
 
style="display: %xxxxx^gt:0:block:none;% etc...