I have a problem with this forms working on a SPA app. I put the script on the head: https: //cxppusa1formui01cdnsa01-endpoint.azureedge.net/global/FormLoader/FormLoader.bundle.js. And this div on my component HTML:
data-form-id='{msdynmkt_marketingformid}’
data-form-api-url=’https://{server}.dynamics.com/api/v1.0/orgs/{organizationid}/landingpageforms/forms/{msdynmkt_marketingformid}’
data-cached-form-url=’https://{server}.dynamics.com/{organizationid}/digitalassets/forms/{msdynmkt_marketingformid}’
. The problem is that the form works fine if recharges the page but with router navigation of angular doesn’t work.
I tried to delete the script on the onDestroy and to load the script on the onInit and only works the first time you enter the page