{"id":403,"date":"2026-01-28T18:24:30","date_gmt":"2026-01-28T18:24:30","guid":{"rendered":"https:\/\/www.martech-magic.com\/?p=403"},"modified":"2026-03-05T09:40:07","modified_gmt":"2026-03-05T09:40:07","slug":"tokens-as-switches","status":"publish","type":"post","link":"https:\/\/www.martech-magic.com\/index.php\/2026\/01\/28\/tokens-as-switches\/","title":{"rendered":"Tokens as switches"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Here&#8217;s the idea: Create a Program Token and use it as Default Value in a hidden field on a form. And depending on the value of that token, the form can do various things: Hide or show fields, change the follow-up page after form submit or allow choices for trigger campaigns after form submit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Caveat: A Program Token can only work in a form if the form is on a landing page that is in the same program as the token.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Okay, that was pretty theoretical. Let&#8217;s get practical.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s my token:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"108\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image.png\" alt=\"\" class=\"wp-image-407\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image.png 438w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-300x74.png 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The value &#8220;1&#8221; is of course arbitrary. I use it to show a Boolean kind of scenario, but you might as well use something more speaking like &#8220;start&#8221;, &#8220;middle&#8221; and &#8220;end&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we need a hidden field on a form. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"369\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-1-1024x369.png\" alt=\"\" class=\"wp-image-408\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-1-1024x369.png 1024w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-1-300x108.png 300w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-1-768x277.png 768w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-1-1536x554.png 1536w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-1-1568x566.png 1568w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-1.png 1572w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Marketo instances we work in usually have a bunch of &#8220;flex&#8221; or &#8220;burner&#8221; fields. Fields that have no specific purpose, but can be used flexibly. They also don&#8217;t need to hold their value permanently, usually only for the seconds it takes to base a decision on them. In this case, my field is &#8220;Flex String 1&#8221;, as its field type is &#8220;string.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, when a person hits the landing page with that form on it, the hidden field &#8220;Flex String 1&#8221; has the value &#8220;1&#8221; as defined by the token {{my.Switch}}.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Okay, what can we do with that?<\/p>\n\n\n\n<h3 id=\"advanced-thank-you-page\" class=\"wp-block-heading\">Advanced Thank You Page<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"378\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-2-1024x378.png\" alt=\"\" class=\"wp-image-409\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-2-1024x378.png 1024w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-2-300x111.png 300w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-2-768x283.png 768w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-2-1536x567.png 1536w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-2-1568x579.png 1568w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-2.png 1891w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If your token value is &#8220;1&#8221;, the follow-up page after form submit will be &#8220;Thank_You_With_Video&#8221;. If not, it will be &#8220;Thank_You_Without_Video&#8221;.<\/p>\n\n\n\n<h3 id=\"form-field-visibility\" class=\"wp-block-heading\">Form Field Visibility<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Lets say, you have a field &#8220;Accompanied?&#8221; on the form that asks your visitor to check it if they want to visit the event with company. But you don&#8217;t need that anymore after circumstances change. Add a visibility rule&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"573\" height=\"496\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-3.png\" alt=\"\" class=\"wp-image-410\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-3.png 573w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-3-300x260.png 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230; and control the visibility of the field with your token. If it&#8217;s &#8220;1&#8221; the field shows up, if not &#8220;1&#8221;, it won&#8217;t.<\/p>\n\n\n\n<h3 id=\"smart-campaign-choices\" class=\"wp-block-heading\">Smart Campaign Choices<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Trigger:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"160\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-5.png\" alt=\"\" class=\"wp-image-412\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-5.png 912w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-5-300x53.png 300w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-5-768x135.png 768w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Flow:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"870\" height=\"438\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-6.png\" alt=\"\" class=\"wp-image-413\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-6.png 870w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-6-300x151.png 300w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2026\/01\/image-6-768x387.png 768w\" sizes=\"auto, (max-width: 870px) 100vw, 870px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here you base the choice which email is being sent after form submit on your Program Token.<\/p>\n\n\n\n<h3 id=\"reallife-scenario\" class=\"wp-block-heading\">Real-life scenario<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We used this technique recently to cover a specific webinar scenario. After a webinar is over, the registration page is no longer useful. In fact, you need an on-demand process &#8211; assuming you have such a thing and send a video of your webinar to your customers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But when the webinar is over, the recording of the session might not be &#8211; yet. You might want to edit it first, and that takes a week or so. So you have an intermediary state where the webinar is over, and the registration page is useless, but the on-demand process is not ready yet. So we use this &#8220;Switch Token&#8221; to tell the TY page that says &#8220;We&#8217;re working on the recording. We&#8217;ll send it to you once it&#8217;s ready&#8221;. And when the recording is ready, we change the value of the token to create the final follow-up scenario, both for the TY page and the email follow-up.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What do you think? Like it?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An idea to use Marketo Program Tokens as Switches. And by &#8220;switches&#8221; I mean something to base decisions on. Lights on &#8211; lights out. You know what I mean.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,8,15],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-forms","category-tipps-tricks","category-tokens","entry"],"_links":{"self":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/comments?post=403"}],"version-history":[{"count":6,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":416,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts\/403\/revisions\/416"}],"wp:attachment":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/media?parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/categories?post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/tags?post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}