Streaming live at 10am (PST)

How to display custom field on your Email Template

Hi,

I am working on a real estate website and had a request from a client that I wanted to share with you that hopefully will help.

They wanted each property to have a contact form and when somebody fills the form, the ID of the property will also be displayed in the email the client (website owner) receives.

Here is how I did it:

  1. Created the form

  2. Added the field for the ID

  3. Pre-populated the field with this script I got from @Cameron_Johnson

     $( document ).ready(function() {
         // after the page elements are all loaded, then run the script
         // Set the input field with unique ID #email to a value
    
         $("#email").val('someone@test.com');
    
         // Set the input field with unique ID #name
    
         $("#name").val('John Doe');
         
         });
    
  4. Made the field hidden

That’s it

Don’t hesitate to write me if you have any questions.

1 Like

Great work it will be very helpful for us.