Can Survey or custom questions answers be fed into autoresponder emails?

Options
Hi-

Does anyone know a way to embed Survey or custom questions responses into autoresponder emails? We have several surveys that we would love for the results to be sent to individuals in their autoresponder emails.


Thanks!

Hayley
Tagged:

Comments

  • Erik Leaver
    Erik Leaver ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Hi Hayley,


    I think this can be done but will take a little bit of work. You can use the S28 tag to pull in the totals number of responses to a particular survey question, but there is currently no S tag that will pull in a specific constituent's survey responses. See the following KB for a workaround: How do I insert survey question responses using an S-tag?


    This method will populate a custom field you create with the answer. You can then use the S1 tag to add the answer into an autoresponder. 


    Do post the results, eager to see what you are doing!


    Cheers,

    Erik
  • Hayley Durham‍ ,


    There is no standard functionality for this, however, the desired effects can be achieved by a developer with session variables.


    The trick is to set a session variable on the survey submission and then retrieve those values from the session using the S80 tag.


    Let's say you have a custom question in the survey called Favorite Color.

    1. When the survey is rendered the developer needs to add another input, usually hidden, to be submitted  to the server upon submission, the value should be set & updated to the same value as the survey fields that the server outputs. The name of the input would be s_favoriteColor. The favoriteColor can be set to any value, but it's the s_ part of the input that tells the server to set favoriteColor as a session variable.

    2. Then in your autoresponder you would test for this session variable's presence and render it if it's set. Note, that if you changed favoriteColor in step 1, the value in this code snippet needs to be changed accordingly.
    [[?x[[S80:favoriteColor]]x::xx::::<strong>Your favorite color is:</strong> [[S80:favoriteColor]]]]


    I hope this helps you get the desired results.


     

Categories