Hi guys,
In my dynamics 365 marketing portal, I add this simple js in localized content of my passes web page (advance option) and it didn't work.
Please have you an idea about.
Many thanks.
Hi Jean,
Please let me know whether your problem could be solved.
Regards,
Clofly
Hi Jean,
1. Could you share me screenshot of:
-> your passes web page(advance option)
-> localized content
2. Did you use marketing portal for hosting event website?
If so, event portal is built with Angular and we should follow Angular syntax.
As per my understanding and experience, pass web page is located in src\app\components\event\passes,
if you would like to show an alert when open the page, then add alert inside ngOnInit function inside passes.component.ts.
3. The code is jQuery function(only $(document).ready(function() {})), you could add reference to jQuery cdn file in index.html for test:
However, the alert will work for all pages because it's on root page,
while custom script on other child pages will be ignored whatever using jQuery or not,
that's by Angular framework design.
So if you want to make customization on pass web page, please achieve your logic in corresponding ts file, as I did in point 2.
In addition, jQuery could still work under Angular, but you should develop the event portal code locally to import jQuery module,
and it's not recommended because design of those 2 frameworks are different.
https://blog.bitsrc.io/how-to-use-jquery-with-angular-when-you-absolutely-have-to-42c8b6a37ff9
Regards,
Clofly
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156