2 Replies Latest reply on Mar 26, 2018 11:39 AM by Sanford Whiteman

    thank you page showing user name (token)

    Sina Bodin

      Hi there,

      I would like to create a thank you page that includes the name of the user, who just filled in the form.

      Example:  One required form field is First Name, after submitting the form, I want the Thank you Page to show something like "Thanks Sina."

      Is that possible and how?

        • Re: thank you page showing user name (token)
          Grégoire Michel

          Hi Sina,

           

          Yes, just use the {{lead.First Name}} token in the page. Will only work with people who accept cookies, though. Do not forget to add a default value to the token.

           

          If you want a solution that always work, you will have to use Javascript and the forms 2.0 API to

            1. Get the form values
            2. encode them in Base64
            3. add them to the followup page URL
            4. Get the date from the URL in the follow up page
            5. decode the base64
            6. inject the values in the page

           

          The JS solution as to be really worth it

           

          -Greg

          1 of 1 people found this helpful
            • Re: thank you page showing user name (token)
              Sanford Whiteman

              Will only work with people who accept cookies, though.

              Surprisingly, this will work even without cookies if the field is one of the fields just submitted (which is the case with First Name here).

               

              This is because Marketo uses a read-after-write cache for just that subset of fields to ensure they're readable immediately.

               

              It's other fields on the lead that can't be read until the session is associated (and that won't be guaranteed to work immediately, even if cookies are enabled).

              1 of 1 people found this helpful