Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Use Merge Fields to Redirect Users

Learning Objectives

After completing this unit, you’ll be able to:

  • Set up the thank you page for redirection.
  • Add custom messages and buttons to survey thank you pages.

Thank You page redirection allows merge fields, so Maria configures merge fields that she wants to include within the survey. Here’s how she does it.

  1. Click App launcher  to open the App Launcher.
  2. Enter Surveys in the search box, and select Surveys.
  3. To open the Survey Builder, click New.
  4. Enter Solar Products NPS in the New survey window.
  5. Click Continue.
  6. Click Advanced Settings, and select Merge Field Variables.
  7. Select the Merge Field Access Level as User Context - Enforce all user permissions.
  8. Expand Org and Custom Variables.
  9. Click New Variable.
  10. Complete these fields:
    • Variable Name: CompanyName
    • Variable Type: Custom
    • Variable Value: Ursa Major Solar
      The surveys merge field window.
  11. Click Save.
  12. Click Back to Builder.

Maria adds a question to the Solar Products NPS survey.

  1. Enter a welcome message: Thank you for showing interest in Ursa Major Solar. Please take this survey to help us serve you better.
  2. Click Add Page.
  3. Click Add Question and select Net Promoter Score.
  4. Enter the question: Rate your recent visit to the Ursa Major Solar store.
  5. Click Thank You Page.
  6. Enable Customize Page.
  7. Enter a thank you message: Thank you for sharing your valuable feedback.

Maria customizes the thank you page of the survey to meet the use cases.

  1. Click + Add Custom Message.
  2. Enter a thank you message: We are sorry that you didn't have a satisfactory experience with 
  3. Add a space, and click Insert Content.
  4. Select Merge field from a custom variable, and click Next.
  5. In the Custom Variable field, select CompanyName.
  6. Click Insert.
  7. At the end of the merge field, insert a period.
  8. Add a space after the period, and enter this text, including the period at the end: As a token of apology, we offer you a $100 coupon on your upcoming purchase.
  9. Click Display Logic.
  10. Define the condition:
    • Select Condition: All conditions are met
    • Logic Type: Response to Question
    • Select Question: Page 1 : Rate your recent visit to the Ursa Major Solar store
    • Select Operator: is less than
    • Select Response: 8
  11. Click Save Logic.
  12. Click URL and select Redirect.
  13. Enter the desired URL. Maria enters the URL to the special coupons page on the Ursa Major Solar website.

    Note: Enter the URL in https://www.example.com or http://www.example.com format.The Custom Message window in the thank you page with the URL Redirect ID.
  14. Click + Add Custom Message.
  15. Enter a thank you message: We are sorry that you couldn’t find what you are looking for at our store. Check out our exciting range of upcoming solar products.
  16. Click Display Logic.
  17. Define the following condition:
    • Select Condition: All conditions are met
    • Logic Type: Response to Question
    • Select Question: Page 1: Rate your recent visit to the Ursa Major Solar store
    • Select Operator: is greater than or equal to
    • Select Response: 8
  18. Click Save Logic.
  19. Click URL and select Button.
  20. Define the first condition:
    • Button Label: See more products
    • URL: Maria adds the URL to the webpage that displays upcoming Ursa Major Solar products.
  21. Click + Add Button.
  22. Define the second condition:
    • Button Label: Follow us on social media
    • URL: Maria enters the URL to the social media page of Ursa Major Solar.The Custom Message window in the thank you page with URL button labels.
  23. Click Save and Activate. Click Got It on the popup.

Maria clicks Preview on the survey builder to test the survey.

Improved Participant Experience

Maria has customized the thank you page of Ursa Major Solar surveys to boost customer engagement and drive organic traffic to the company website. Ada is thrilled that she can now do much more than just appreciate survey takers for their feedback. She can lead users to the Ursa Major Solar website, offer discounts or rewards, promote the company’s social pages, and more. It also helps the sales and services teams of the company with insightful data to improve their services and generate more selling opportunities.

Resources

Compartilhe seu feedback do Trailhead usando a Ajuda do Salesforce.

Queremos saber sobre sua experiência com o Trailhead. Agora você pode acessar o novo formulário de feedback, a qualquer momento, no site Ajuda do Salesforce.

Saiba mais Continue compartilhando feedback