Hello,
I have a custom field on my signup page and I'd like to include the value of that custom field in the Email that gets sent to me when a new customer signs up. However, I'm having a hard time figuring out how to display the custom field in the Template Based Email.
Here's my code so far:
On the ACAD Page I have a dropdown menu with the name of "acquisition":
On the Landing Page (after signing up) I store the custom field:
The custom field is stored, and I can successfully display the value on the Landing Page using the following code:
However, when I use that same exact code to display the value within the Template Based Email, the value is blank.
I have verified that the Custom Fields item is assigned to the Email Template.
Can anyone shed any light on why this isn't working in the Email Template?
Thanks!
UPDATE:
It appears that rather than using the Custom Field, I can simply use the global variable in the Email Template:
This should be enough to solve my issue.
Maybe the Email Template doesn't have access to the Custom Fields?
Or maybe the email is sent before the Custom Fields have been saved?
If anyone has a definitive answer, I'd still love to hear it!
Thanks!
I have a custom field on my signup page and I'd like to include the value of that custom field in the Email that gets sent to me when a new customer signs up. However, I'm having a hard time figuring out how to display the custom field in the Template Based Email.
Here's my code so far:
On the ACAD Page I have a dropdown menu with the name of "acquisition":
Code:
How did you hear about us? <select name="acquisition"> <option value="">Please Make a Selection</option> <option value="Email">Email</option> <option value="Web Search">Web Search</option> <option value="Referral">Referral</option> </select>
Code:
<mvt:if expr="g.Action EQ 'ICST' AND g.acquisition"> <mvt:item name="customfields" param="Write_Customer_ID( g.Basket:cust_id, 'acquisition', g.acquisition )" /> </mvt:if>
Code:
<mvt:item name="customfields" param="Read_Customer_ID( g.Basket:cust_id, 'acquisition' )" /> <p><strong>Acquisition:</strong> &mvt:customfields:acquisition;</p>
I have verified that the Custom Fields item is assigned to the Email Template.
Can anyone shed any light on why this isn't working in the Email Template?
Thanks!
UPDATE:
It appears that rather than using the Custom Field, I can simply use the global variable in the Email Template:
Code:
&mvt:global:acquisition;
Maybe the Email Template doesn't have access to the Custom Fields?
Or maybe the email is sent before the Custom Fields have been saved?
If anyone has a definitive answer, I'd still love to hear it!
Thanks!
Comment