Skip to main content

Notifications

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

Hide "View in Browser" while viewing Email in Browser

(0) ShareShare
ReportReport
Posted on by 87

Hello community,


I have integrated the "View in Browser" functionality in my marketing mails.

The recipient can now view the mail in the browser if the mail is not displayed correctly. But the browser also shows the "View in Browser", which doesn't make any sense to me. The contact is already in his browser.

Is there a way to hide this text if the contact has already opened the email in the browser?

Thank you and regards

Ferdinand 

  • Verified answer
    Ferdinand Ganter Profile Picture
    Ferdinand Ganter 87 on at
    RE: Hide "View in Browser" while viewing Email in Browser

    Hi there Leah,

    thanks for your quick answer. Maybe I thought about a small javascript, which will load when Browser is open and hide the Text fiel.

    like this:

    if (navigator.userAgent.indexOf("Outlook") > -1) {

     // The user is using Outlook

    } else {

     // The user is not using Outlook

     document.getElementById("WebbrowserLink").style.display = "none";

    }

    But in my mind, JS is not Loading in E-Mail but in Browser so maybe i only need the   document.getElementById("WebbrowserLink").style.display = "none"; or is there anything I should mind?

    Thanks

    Best Regards

    Ferdinand

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Hide "View in Browser" while viewing Email in Browser

    Hi Ferdinand,

    Unfortunately, you can't hide or show it based on email opening ways if you have added it to the email.

    In Marketing emails, we can add advanced logical processing to email designs:

    Conditional (if-then-else) statements display content depending on whether one or more conditional expressions resolve to true or false. 

    But we can't get email opening ways through it.

    https://learn.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content 

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans