Announcements
No record found.
Need to hide resolve case button when processstatus(Lookup) = Change in NRA . Can anyone please provide javascript code for this one...Help is appreciated
Hi,
function HideResolveCaseButton(formContext)
{
var processId = formContext.getAttribute(“ownerid”).getValue();
var Name = processId[0].name;
if(name =="Change in NRA")
return false;
else
return true;
}
Replace ownerid with process field schema name
Select primaryControl parameter while calling this method from ribbon enable rule
Shall i pass primary control to function
Please see ee below link
d365demystified.com/.../
Not required...only keep formContext parameter.
Why did you set Invert Result to true, it should be false only
HI bipin the resolve button is hidden when process type = change in NRA but resolve case button should be hidden only when process type = change in NRA but it Is hiding for all values
Add debugger in your code ..
Also add alert in your code.
Again try ribbon debugging feature to see which rule is not satisfied
Hello,
Does it work when you open any existing record where process type is not Change in NRA?
I believe it does not work when you change option set field on the form .
You will have to write below code and attach this on onchange of process type field to refresh your ribbon.
formContext.ui.refreshRibbon();
learn.microsoft.com/.../refreshribbon
good
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Daniyal Khaleel 60 Most Valuable Professional
11manish 12 Super User 2026 Season 2
Hamza H 8 Super User 2026 Season 2