Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide options displayed on click of plus button in Activities subgrid

(0) ShareShare
ReportReport
Posted on by

I have activities sub-grid placed in form of custom entity and contact. When i click on plus button on activities sub-grid, it shows list of all activities. I need to hide these list and display only email and task on click of plus buttton. Is there any way to filter it. I mean thee options displayed on click of plus button in activities sub grid. Please help

The sub grid plus button options are same for all the users(unless user doesn't have privilege to add email or task).

Thanks
Goutham

*This post is locked for comments

  • RE: Hide options displayed on click of plus button in Activities subgrid

    Hi All,

    This is working for me except `phonecall', 'email' and 'task' buttons.

           $("#AddtaskButton").remove();

           $("#AddemailButton").remove();

           $("#AddphonecallButton").remove();

    Do you know what's especial with this activities. The rest of  activities remove correctly from the (+) menu, but these three I don't know why not working.

    Thank you for your response.

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    Hi Fede,

    I am glad that it helped you.

    But this worked for me.

    Please include below code snippets. Also , please check if $("#AddemailButton") is returning any DOM via debugging.

    $("#AddemailButton").remove();

    $("#AddletterButton").remove();

    or

    $("#AddemailButton").hide()

    or

    $("#AddemailButton").CSS("display","none");

  • 2015crm Profile Picture
    2015crm 390 on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    just wondering how you did this step by step, in D365 V9 it doesnt seem to work? no errors or anything.

  • Fede Bergamaschi Profile Picture
    Fede Bergamaschi 100 on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    Hi Mohd,

    thank you for your answer.

    I've already add jquery, in fact other remove commands work as a charm (I've successfully removed fax, service activity, letter, campaign response), whilst email command remains visible.

    this is the code I used in the onLoad event of the form:

    $("#AddfaxButton").remove();

    $("#AddemailButton").remove();

    $("#AddserviceappointmentButton").remove();

    $("#AddletterButton").remove();

    $("#AddcampaignresponseButton").remove();

    How can I manage this?

    Thank you

    Federica

    EDIT: It works! Maybe I didn't publish correctly.

    thank you so much

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    You need to add jquery library before your js library in order to make it work.

  • Fede Bergamaschi Profile Picture
    Fede Bergamaschi 100 on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    Hello Goutham,

    thank you for sharing this workaround! I also need to remove the add email option but $("#AddemailButton").remove() command doesn't work, do you know what's the name of this command?

    thank you in advance!

    Federica

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    Thank You all  for your Quick replies. The requirement is i need to hide options on clcik of plus button but no the data inside activity subgrid.

    I have done it using jquery. On page load i have written a function which manipulates the dom.

    fucntion HideActivityOptions()

    {

    $("#AddphonecallButton").remove();

    $("#AddappointmentButton").remove();

    }

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    Hi

    One more thing but hiding activities in the list is not possible. Please refer the below URL

    community.dynamics.com/.../167713

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    Hi

    Create a new view in activities and set filter as to display only email and task

    In the activities sub grid could you please change into new view.

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: Hide options displayed on click of plus button in Activities subgrid

    Create a new view and set filter as email and task only.

    In your form subgrid, set this view as default and do not allow users to change it.

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,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans