Using program tokens to define value on hidden form field | Community
Skip to main content
Dan_Stevens_
Level 10
July 23, 2024
Solved

Using program tokens to define value on hidden form field

  • July 23, 2024
  • 1 reply
  • 2159 views

We're using a central form at the bottom of all of our solution offering pages (not Marketo LPs) (e.g., https://www.avanade.com/en/services/microsoft-tech/cloud-and-applications/ai-ready-cloud).  At the program level, we have a {{my.solution offer name}} defined - which should populate this value when the form is submitted:

 

The value that is being stored is the actual token name and not one of these values:

  • Security Copilot Workshop
  • Sprint Zero Workshop
  • Mainframe Modernization for AI
  • Avanade Cloud Impact
  • Microsoft Copilot for Microsoft 365
  • Copilot for Dynamics 365

Are program tokens not supported at all in Marketo forms?  If not, what is the solution to grab this token and populate the hidden form field?

 

I did see your response, @sanfordwhiteman in this post (https://nation.marketo.com/t5/product-discussions/trying-to-use-tokens-to-pre-populate-data-on-a-form/m-p/341331#M194219), but wasn't sure if it applies here since we are only using a handful of potential values (defined at the program level) that can only include letters, numbers and spaces.

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 SanfordWhiteman

Not on a non-Marketo LP.

 

(You can use SimpleDTO to pass {{my.tokens}} from Marketo, though.)

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
July 23, 2024

Not on a non-Marketo LP.

 

(You can use SimpleDTO to pass {{my.tokens}} from Marketo, though.)

Dan_Stevens_
Level 10
July 23, 2024

That's right - I forgot about that.  We already use your DTO script on our site.  In the meantime, I'm just going to define the value immediately when someone fills out the form on the specific offer page: