Email Template outputs '0' and '1' for Yes or No

dlugo 01 Feb, 2017
When I receive the email it shows the response in form of '0' or '1'. How would I go about it showing Yes or No instead?

The following code has been generated for a user to respond 'yes' or 'no' from a dropdown menu when asked if he/she is at least 18 years of age:

<div class="gcore-line-tr gcore-form-row" id="ftr-age"><div class="gcore-line-td" id="ftd-age"><label for="age" class="gcore-label-left">Are you at least 18 years of age? </label>
<div class="gcore-display-table gcore-input" id="fin-age"><select name="age" id="age" size="" class=" validate['required']" class="" title="" style="" data-load-state="" data-tooltip="">
<option value="0">No</option>
<option value="1">Yes</option>
</select></div></div></div>


Below is the email code that is generated:
<tr id="ftr-age" class="gform-line-tr">
<td id="ftd-age" class="gform-line-td"><strong><label class="gform-label-left" for="age">Are you at least 18yrs old?</label></strong>
<div id="fin-age" class="gform-input-container gform-input">{age}</div>
<div class="gform-input-container gform-input"> </div>
</td>
GreyHead 01 Feb, 2017
Hi dlugo,

Please change the options to No=No and Yes=Yes

Please see this FAQ

Bob
dlugo 01 Feb, 2017
Ho Bob,

Thanks for the feedback. Is this what you're referring to?

<div class="gcore-line-tr gcore-form-row" id="ftr-age"><div class="gcore-line-td" id="ftd-age"><label for="age" class="gcore-label-left">Are you at least 18 years of age? </label>
<div class="gcore-display-table gcore-input" id="fin-age"><select name="age" id="age" size="" class=" validate['required']" class="" title="" style="" data-load-state="" data-tooltip="">
<option value="No">No</option>
<option value="Yes">Yes</option>
</select></div></div></div>
GreyHead 01 Feb, 2017
Hi dlugo,

Yes, but you can do it directly in the element settings, there is no need to edit the HTML.

Bob
This topic is locked and no more replies can be posted.