Announcements
Hi,
I am trying to create a Marketing Form that will be embedded on an external page (not on an Marketing Page created in Dynamics). I have a javascript function that should execute on afterFormLoad (because it uses some fields from the form). I understand that is not recommended to embed the javascript inside the HTML code of the Marketing Form because additional content will always be cleared. Refer this post: https://community.dynamics.com/365/marketing/f/dynamics-365-for-marketing-forum/417003/extending-marketing-forms-with-javascript/1141818#1141818.
Is putting the script on the page itself the only viable option? There isn't another way to embed the javascript in the code of the Marketing Form without to worry that it will be cleared everytime the form will be updated?
Thank you.
Hi,
Please refer to the following documentation to know more about how to extended marketing form using JavaScript.
Extend marketing forms using code (Dynamics 365 Marketing Developer Guide) | Microsoft Docs
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Nya
André Arnaud de Cal...
294,000
Super User 2025 Season 1
Martin Dráb
232,850
Most Valuable Professional
nmaenpaa
101,158
Moderator