SOLVED

Program Tokens in Forms

Go to solution
Michael_Florin
Level 10

I wonder where Program Tokens are actually supported in Marketo forms. And just to be safe: I mean forms on landing pages in programs.

 

Just a few examples:

 

Program Tokens certainly work here, and Marketo explicitly says so:

Michael_Florin_0-1766004863126.png

 

And from all I can tell they work as default values in hidden fields like this:

 

Michael_Florin_1-1766004936341.png

 

But what about here in Checkbox values:

Michael_Florin_2-1766005016888.png

 

Again, I'd say this works, but it completely messes up the editor:

Michael_Florin_3-1766005140541.png

And this is only about text tokens. What about Velocity tokens?

 

I find program tokens in forms very interesting. You can use them like switches e.g. to control the behavior of follow-up pages or Smart Campaign choices, but I'm not sure they only accidentally work but are actually not supported. Does anybody know?

 

 

 

 

 

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator
Velocity is never supported.

Static string {{my.tokens}} aren't really supported because they're not properly JS-escaped, but if you can control their input, they will work. I still don't recommend leaning on them and instead output {{my.tokens}} into HTML <fatalist><option>s where they can then be injected into the form with no risk of breaking everything.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator
Velocity is never supported.

Static string {{my.tokens}} aren't really supported because they're not properly JS-escaped, but if you can control their input, they will work. I still don't recommend leaning on them and instead output {{my.tokens}} into HTML <fatalist><option>s where they can then be injected into the form with no risk of breaking everything.
Michael_Florin
Level 10

Thank you Sanford. I control the input, and I think I understand the risks.