Skip to main content

Notifications

Announcements

No record found.

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

Hide "View in Browser" while viewing Email in Browser

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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans