I've setup a custom email notification that is sent out after submitting a form. I want to have a set message but with a personalised greeting "Hi Bob". I have the email.html file and that works but I can't figure out how to display the persons name. In my example the field handle it yourName and the form handle is contactForm.

Is this possible?

1 Answer 1


Following Sprout Forms example templates (/admin/sproutemail/settings/examples): in your email.html file Hi {{ object['yourName'] }} or even Hi {{ object.yourName }}, should print Hi Bob.

  • Thanks. In the end I found that {{ element.yourName }} worked. Not sure if object and element are interchangeable? But thanks for the reply!
    – Garth
    Nov 30, 2017 at 15:45
  • I think it doesn't matter, and even {{ yourName }} should works as a shorthand.
    – Romain P.
    Nov 30, 2017 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.