Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide values on "Timeline" in Portals

(0) ShareShare
ReportReport
Posted on by 35

Hello everybody 

I was wondering if it is possible to hide values within the timeline when displayed at the portal site.  

It is set to show activities and it is the value "created by" on "portal comments" i would like to hide / remove. I know it is a OOB, but is there a javascript that can hide some of these values? 

7774.1.PNG

Hope someone can help 

Best regards,

Casper

 

*This post is locked for comments

  • bik@inturi Profile Picture
    bik@inturi 75 on at
    RE: Hide values on "Timeline" in Portals

    THank you so much Nicholas. Much appreciated.

  • Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Hide values on "Timeline" in Portals

    Here is the blog post with more details:

    www.engineeredcode.com/.../power-apps-portals-customizing-the-rendering-of-notes-and-activities

  • Suggested answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Hide values on "Timeline" in Portals

    Try the following JavaScript:

    $('#notes-template').html( $('#notes-template').html().replace(/ViewFields.to/g, 'ViewFields.somethingelse'));

    Along with this CSS:

    .notes .note .from span {

    display: none;

    }

    The CSS is needed only if you are displaying Phone Calls on the portal.

    It's a bit complicated how this works - I'm working on a blog post that provides a more in depth explanation.  Long story short, I'm modifying the Handlebars template that is used to render that section.

    Nick

  • bik@inturi Profile Picture
    bik@inturi 75 on at
    RE: Hide values on "Timeline" in Portals

    Hi Nicholas

    Thankyou But that will remove the Whole of FROM. I only want the Arrow and the "TO" removed.

    In above scenario  just have CASPER showing.

    Thanks

  • Suggested answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Hide values on "Timeline" in Portals

    Try:

    .notes .note .from {

     display: none;

    }

  • bik@inturi Profile Picture
    bik@inturi 75 on at
    RE: Hide values on "Timeline" in Portals

    THank you so much. That has worked.   I also have another issue where it says on the screen

    Casper -> system

    is it possible to just remove the Arrow and the word system.  ( or anything else that comes up)  

    Thank you so much for all the help in advance .

    Bikram

  • Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Hide values on "Timeline" in Portals

    You can put the CSS in the "Custom CSS" attribute located on the Web Page record your form is on.

  • bik@inturi Profile Picture
    bik@inturi 75 on at
    RE: Hide values on "Timeline" in Portals

    Hi 

    did you manage to do this, how did you do it .. hwere did you put the css. 

    I have no experience of JS but i need to do esactly that .

    Thanks

  • Casperhartz Profile Picture
    Casperhartz 35 on at
    RE: Hide values on "Timeline" in Portals

    Thanks - it worked !

  • Verified answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Hide values on "Timeline" in Portals

    Hi Casper,

    JavaScript could work, but I'd recommend CSS.  Most of the out-of-the-box capabilities have specific classes you can target to hide them.  In your case, try something like:

    .notes .note .createdby {

      display: none;
    }

    It's important that an advanced user could still open developer tools and see the value, so this isn't a good option if you are trying to hide this value for security purposes (JavaScript would have the same issue), but if you're just trying to clean up the interface, CSS is the way to go.

    Nick

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…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans