I am attempting to perform some field validation on a Landing Page using some javascript that I'm working on.
Long story short, I am confused as to where I need to inject the <script> tags as the documentation is kind of all over the place, both here in the community as well as this article everyone keeps posting: https://docs.microsoft.com/en-us/dynamics365/marketing/developer/marketing-form-client-side-extensibility
Can someone please instruct me clearly where to place the <script> tags so that they'll be called correctly when the form is submitted? Script below:
-------------
Hi DCReina,
We shouldn't put code to source code of marketing form, because additional content will always be ignored/cleared.
In other word, HTML of marketing form is only used to generate/render marketing form.
Instead, please put script to source code of marketing page.
(HTML of marketing form is part of HTML of marketing page.)
Hi Clofly!
Thanks for the quick response. I just don't seen the <head><body> tags anywhere in the editor:
I am guessing that it's because the form is being hosted as a script somewhere in a portal? This is the main source of my confusion...
Hi Partner,
You could put script function inside body tag.
e.g:
Landing page ...
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156