Skip to main content
Eben_Saputra
Level 3
2月 21, 2019 6:27 下午 UTC
已解决

Passing Data to Form from Email

Hi there,

  • We want to send out email survey.
  • Inside the email, there is a 5 star rating.
  • Recipient can click any of the star, and they are taken to Survey landing page.
  • The landing page also has the same 5 star rating, which correspond to whatever rating they choose previously.

Question:

How to pre-populate the form with choice selected from email?

The simplest way to do achieve this is by linking each star to different landing page.

Each landing page will have Hidden Field for chosen Survey Score field.

But this will quickly become cumbersome to create and maintain; I have to create 15 landing pages, and much more as the scale increases.

此主题已关闭回复。
SanfordWhiteman
User Group Leader
2月 21, 2019 8:14 下午 UTC
  • At Email, each star will have certain parameter embedded (to their destination URL?)
  • At Landing page, a script will take that parameter (from the URL?) to pre-fill the radio button

Any resources that you can point to sending and receiving these parameters?

There's nothing special here. It's standard Form Editor Hidden field Auto-Fill functionality, fill from query param.

15回复

SanfordWhiteman
User Group Leader
User Group Leader
2月 21, 2019 6:43 下午 UTC

You haven't explained how you're visualizing the "stars" in the first place. That is, there's no direct support for <input type=star-rating> on forms. You'd have to simulate it using radio buttons or a range with custom CSS.

So you might as well have the real stars count field (Score in Mkto presumably) be a hidden field mapped from the query param. The visible star widget mirrors that value.

翻译
Eben_Saputra
Level 3
2月 21, 2019 7:21 下午 UTC

@Sanford Whiteman​
Thanks for the reply!

Yeah I figured ​that I will need custom CSS for star rating.

We altered the radio button with CSS before, so I think it will not be a big problem

As for the main question:

I take that you are suggesting is

  • At Email, each star will have certain parameter embedded (to their destination URL?)
  • At Landing page, a script will take that parameter (from the URL?) to pre-fill the radio button

Any resources that you can point to sending and receiving these parameters?

Thanks,

Eben

翻译
SanfordWhiteman
User Group Leader
User Group Leader
2月 21, 2019 8:14 下午 UTC
  • At Email, each star will have certain parameter embedded (to their destination URL?)
  • At Landing page, a script will take that parameter (from the URL?) to pre-fill the radio button

Any resources that you can point to sending and receiving these parameters?

There's nothing special here. It's standard Form Editor Hidden field Auto-Fill functionality, fill from query param.

翻译
Eben_Saputra
Level 3
2月 22, 2019 4:13 下午 UTC

Thanks as always Sanford!

I am going to try implementing the Parameter to the email.

As far as I know, I need only to put ?Field=value to the last part of my email
And at the form side, the auto-fill option will extract from that field name

Once I am successful I will report here

翻译
Michael_Florin-2
Level 10
2月 22, 2019 5:09 下午 UTC

I worked on a similar project recently and these two pages helped me:

For the email: https://www.checkmarket.com/kb/embed-the-nps-question-in-the-survey-email-invitation/

For the landing page: https://jennamolby.com/how-to-display-dynamic-content-on-a-page-using-url-parameters/

翻译
SanfordWhiteman
User Group Leader
User Group Leader
2月 22, 2019 5:36 下午 UTC

The links are aren't really relevant (more like wrong!) for Marketo forms and LPs.

翻译