Collect multiple values in a field | Community
Skip to main content
marija_Milanova
Level 2
November 1, 2018
Solved

Collect multiple values in a field

  • November 1, 2018
  • 1 reply
  • 8376 views

Hi,

I have a hidden field on a form that populates the related product when someone fills out a form, for example Product A. Now, if that same person fills out another form related to another product, Product B, I would like to collect the information on the hidden field as: Product A, Product B, Product C... instead of having the recent value overwriting the first one. This will help us understand the products the prospect is interested in.

The hidden field I have created is a string.

Is this possible?

Thanks a lot in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dan_Stevens_

You need to concatenate the new value with existing value:

{{lead.AR Product Line}}; {{lead.AR_Product History}}

in fact, you should include a Choice in your flow for when the field is empty, you don’t do any concatenation - like this:

1 reply

SanfordWhiteman
Level 10
November 1, 2018

While this is somewhat possible -- as long as you're using a Marketo-hosted LP, otherwise you'd have to add additional code to pre-fill the field with the existing value -- I wouldn't recommend doing it this way. If someone fills out a 2nd form in a different, originally anonymous browser session (which most certainly will happen over time) it naturally will not be possible to pre-fill the field, which unnecessarily breaks your logic.

Instead, create a separate history field in your instance (make it a Textarea).  Then in a Smart Campaign triggering on Data Value Changes, use a Change Data Value Flow step to append the most recent value to the history field, separated by a semicolon.

marija_Milanova
Level 2
November 1, 2018

Thanks for the reply Sanford. It is a Marketo hosted LP. We have one history field which captures Clicks, Form Fills etc, but not for the product. Your suggestion has been in my mind as well, I thought there was a shortcut
I will build it as recommended and test it.