Concatenate fields to a string and add value to hidden Marketo field?

Hello,

Is it possible to custom code the concatenation of certain fields into a string, and then input the string into the value of a hidden field?

Hey @Erik1,

Yes, it’s possible. Pretty straight forward if that’s all you need to do.

You just have to be careful and do it right before the form is submitted. Otherwise, if a user changes their response after the initial fill, you might get inaccurate data.

Best,
Hristian

Ty @Hristian! Do you mind explaining a bit more what you mean in the last sentence of your reply?

Otherwise, if a user changes their response after the initial fill, you might get inaccurate data.

Also, is there a pre-built script that you know of either here or on github that will concatenate right before the form is submitted?

Most of the scripts and workarounds can be found here.

1 Like