Checkbox data not appearing in form submission


(Innes Zenati) #1

Looking for assistance in getting a selected checkbox data to appear in the email submission to a mailbox?

At the moment I have several Ts&Cs appear and the customer needs to check the box. That is working correctly but nothing appears in the email submission or in Squiz to determine that they have checked. We require to capture this as evidence they have checked the box.

This is my email body data:

%response_108220_q1^replace_keywords:notempty: DDS Terms accepted: {response_108220_q1}%
%response_108220_q2^replace_keywords:notempty: Reports Terms accepted: {response_108220_q2}%
%response_108220_q3^replace_keywords:notempty: ScotLIS Terms accepted: {response_108220_q3}%
%response_108220_q6^replace_keywords:notempty: RSP Terms accepted: {response_108220_q6}%
%response_108220_q7^replace_keywords:notempty: RoA Terms accepted: {response_108220_q7}%

Even though in tests where I checked the box, nothing appears in the email or submission log.

Thanks


(Lewis) #2

Hi @innesz,

Try using %response_X_qY_raw% This should return the value of the checkbox i.e. <input type=“checkbox” value=“foo” />

I’m assuming a ‘checked’ box would return 1, and an ‘unchecked’ box would return 0. You can then interpret that in your email body.


(Innes Zenati) #3

HI @lewis,

Great, will give this a try thanks!

Innes