Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Javascript in RT Preference Cetner

Posted on by 635 Super User 2024 Season 2
Hi community, 
 
i am trying to add a javascript in the html of the realtime preference center. For the /normal/ marketing real-time forms it works fine. But for the preference center it is not working. 
I added my script in the header of the form. In the developer console of the page i can see that the script is not there. There is already a different default script that i can see on the page but not in the html of the form. 
 
Does anyone know how to add a custom script to that form?
 
Thanks in advance
  • Verified answer
    PaulineKolde Profile Picture
    PaulineKolde 635 Super User 2024 Season 2 on at
    Javascript in RT Preference Cetner
    I found a solution to this problem and wrote a blog article about it: "Select all": Javascript in the real-time form - The Art of Customer Insights (paulinekolde.info)
  • Suggested answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Javascript in RT Preference Cetner
    Hi,
     
    I encountered the same situation as you in my testing.
    The script is visible in the form designer but is automatically deleted in the browser.
    No matter where it is placed it cannot be seen in the browser.
     
    Changes to the form HTML elements are valid.
     
     
    Therefore, this may be due to the product design.
     
     
    Best Regards,
    Dengliang Li
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans