Skip to main content

Notifications

Customer Insights - Journeys forum
Answered

Pass value into marketing form via url parameter?

Posted on by 54
I'm aware of the various prefill options for cookied website visitor, but specifically asking about url parameters. With most form tools, I can easily grab the form Id by inspecting the page, then use a url parameter to set a value in that field when the pages loads.
 
Something like: mywebsite.com/contact?msdyncrm_code-12345=google-ad > passes the value /google-ad/ into a hidden msdyncrm_code field, which then writes to the database. It doesn't appear to work, even with a non-hidden field. It just isn't populating.
 
Am I missing something or is this functionality not supported in marketing forms? Or maybe Outbound but not Real Time?
 
 
 
//
  • Verified answer
    Petr Jantac Profile Picture
    Petr Jantac on at
    Pass value into marketing form via url parameter?
    Hello,
     
    This scenario is supported in real-time marketing forms. You can use JavaScript to parse the value from URL and update a hidden field in the form with that value.
    Important: Make sure you place your JavaScript into the <head> section. Otherwise it will be removed. Also make sure that the JavaScript toggle is enabled in Settings->Feature switches:
     
    Petr
  • Venke Borander Profile Picture
    Venke Borander 15 on at
    Pass value into marketing form via url parameter?
    We've tested this recently, and it works fine for forms published on standalone pages. We've used the example code from Microsoft: https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/real-time-marketing-manage-forms#example-2-populate-a-hidden-field-with-a-utm-parameter-value-from-a-url

    The code is placed at the bottom of the <head> section between the </style> an </head> tags. 
     
    Make sure that the feature switch is set to not ignore custom code in marketing forms. 
  • DM-10051729-0 Profile Picture
    DM-10051729-0 54 on at
    Pass value into marketing form via url parameter?
    Nope, no update since I posted the question
  • RHOU Profile Picture
    RHOU 4 on at
    Pass value into marketing form via url parameter?
    We have the exact same requirement. This would allow us to pass the GUID of an existing Lead in order to let the customer update existing fields of their Lead. 
     
    Did you find a solution to this? 

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,142 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,979 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans