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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans