Re: Do tokens still work in form fields?

Stefan_Gassner
Level 2

Do tokens still work in form fields?

I'm trying to put in the company token into one of my form field labels. 

When I go to test it using the usual smart campaign test, the token displays instead of the intended marketo data or default setting. 

Anyway to test whats wrong here? 

I've tried removing and re-inserted the token and using another one with the same problem. 

16 REPLIES 16
SanfordWhiteman
Level 10 - Community Moderator

Re: Do tokens still work in form fields?

Yes, if the Munchkin session is associated and it's a Marketo LP/

Stefan_Gassner
Level 2

Re: Do tokens still work in form fields?

Weird, the munchkin is assocated and the page is on Marketo. 

Is there anyother way we can test why its not showing? 

SanfordWhiteman
Level 10 - Community Moderator

Re: Do tokens still work in form fields?

How do you actually know it's associated (since token substitution is one of the ways to prove the session is associated)?

Are Visit Web Page activities tracked to the lead, if you open the page in an Incognito/Private window?

Stefan_Gassner
Level 2

Re: Do tokens still work in form fields?

It's tracking the email clicks on both leads emails (different devices), but only registers the page view for one of the leads?

this is what displays.. 

2019-12-19 16_26_13-Synnex Australia _ Company Profile Centre.png

SanfordWhiteman
Level 10 - Community Moderator

Re: Do tokens still work in form fields?

Email clicks (Clicked Email activities) don't use Munchkin at all, so that wouldn't establish that the browser session is associated.

If it's only seeing the Visit Web Page for one of the leads, and you're starting from a new Incognito window each time, on the same machine -- that makes very little sense. I suspect you forgot to close down all your Incog windows between tests or something like that.

In any case, though, you're not really using the tokens in a form field, but rather in the label of a field. I don't think that's ever worked. Of course it's possible to simulate that effect by creating a placeholder <span> in the label and then filling it from the token output elsewhere in the page, though.

Stefan_Gassner
Level 2

Re: Do tokens still work in form fields?

Thanks Sanford, 

Thats what i was trying to get at, but I did mention I was trying to fill the Label. 

Would i use some sort of JS to get the token into the <span> holders? 

SanfordWhiteman
Level 10 - Community Moderator

Re: Do tokens still work in form fields?

Actually, in my tests tokens do work in labels, too. Again, that's if the session or pageview is associated.

I think your problem is with the Munchkin association, not with tokens. Try outputting tokens in the page body, that too requires association.

Stefan_Gassner
Level 2

Re: Do tokens still work in form fields?

The tokens work properly on the page body and the heading, but it still doesnt work inside the forms.. 

Not too sure whats going on with it. 

SanfordWhiteman
Level 10 - Community Moderator

Re: Do tokens still work in form fields?

This is pretty darn bizarre, can you show screenshots of the label as config'd in Form Editor, including the Rich Text Editor?