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.