web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Javascript in RT Preference Cetner

(1) ShareShare
ReportReport
Posted on by 732 Moderator
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
I have the same question (0)
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    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
     
  • Verified answer
    PaulineKolde Profile Picture
    732 Moderator on at
    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)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 166 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 51 Most Valuable Professional

#2
NeerajPawar Profile Picture

NeerajPawar 51

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans