Announcements
function OnChangeSetVisibilty(primaryControl){ var isVisible = false; var formContext = primaryControl.formContext();formContext.attributes.get("lgr_processtype").getValue() != null
if(formContext.attributes.get("lgr_processtype").getValue() != null && formContext.attributes.get("lgr_processtype").getValue()[0].name =="change in Nominated Retirement age"){ isVisble = true; }retrun isVisible;
}
Hi saikrishna963 ,Please refer below links to hide/show ribbon button based on status field value in D365:https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/153867/hide-button-based-in-form-status-in-ribbon-workbenchhttps://d365demystified.com/2021/01/08/ribbon-button-visibility-based-on-a-field-value-in-dynamics-365-ribbon-workbench/I hope it helps,
Thanks.
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 portal.
Hi,
Open ribbon workbench tool - select Reactivate button - right click and select customize command-
Add display rule - select value rule - provide status field and value ...select Inver result to true.
I have done it but it is still vsisble
I have done this but still button is visible
Please share screenshot of what you have done.
Have you published your changes.
I hope you given integer value of optionset.
Set Invert result to false and publish .
Try to debug ribbon button
d365demystified.com/.../
So Reactivate button is still visible on closed Case ?
Have you associated your newly created display rule to comman of Reactivate button. This is mandatory
Please check existing Display Rule attached to Reactivate button.
I checked in my Onpremise instance and I see one display rule attached to this button
FormstateRule State Disabled
You may have to modify this to make it work
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 51 Super User 2026 Season 1
Muhammad Shahzad Sh... 51 Most Valuable Professional
Nagaraju_Matta 50