Expand my Community achievements bar.

SOLVED

Use dynamic values for web forms

Avatar

Level 1

Hi, I have a question regarding Adobe Target. I have a website with a web form. If you fill in this form, you will see a result page. If you leave the website without doing a checkout and you come back later, we would like to use the information of the form you have already filled in to show you a form with all your information so you dont have to fill in the information again. Is this possible with Adobe target and do you know a documentation about it? I cannot find anything about this use case! Thank you for your help!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Joe, technically yes, you can use Profile Attributes to store the values your visitors entered. Try following:

1. For every field that you want to populate automatically, create profile attributes. 

2. Setup an activity for the page with form and create an offer which reads values from profile attributes created in step above. For the visitors who are coming for the first time, retrieved values will be empty so all fields should be empty.

3. In the offer-code, create an event-listener on onChange event. Link below on W3C website shows you how it works.

Tryit Editor v3.5

4. In the function pass text field values as mbox parameters by using mboxUpdate() or adobe.target.trackEvent(), depending upon the version of Target library you have.

5. Populate profile attributes corresponding to all mbox parameters.

Hope this helps,

Rajneesh

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi Joe, technically yes, you can use Profile Attributes to store the values your visitors entered. Try following:

1. For every field that you want to populate automatically, create profile attributes. 

2. Setup an activity for the page with form and create an offer which reads values from profile attributes created in step above. For the visitors who are coming for the first time, retrieved values will be empty so all fields should be empty.

3. In the offer-code, create an event-listener on onChange event. Link below on W3C website shows you how it works.

Tryit Editor v3.5

4. In the function pass text field values as mbox parameters by using mboxUpdate() or adobe.target.trackEvent(), depending upon the version of Target library you have.

5. Populate profile attributes corresponding to all mbox parameters.

Hope this helps,

Rajneesh