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;
}
Hello Bipin as I am beginner to write a code from scratch can you please give me a demo code so that I can replace with my lookup field names and all these your help is appreciated
Hi,
I don't think so because of the lookup field. If field is optionset then we can easily do without any code.
Javascript code should be simple.
Without writing js code, it is not possible to hide that resolve case button??
Hi,
You will need to write javascript code to do that.
Get lookup field value and then check the name .based on name return true or false
Enable Rule - Custom javascript rule
i want to hide resolve case button when process type = change in NRA
Hi,
Yes it worked for me.
Reactivate button is not visible on closed cases. But visible on Open Case.
Can you update as I suggested then publish your changes. Now open closed Case to see if button is still visible.
Please send me screenshot after you done updating
Is it working for you have you checked that
Hi,
We don't need new display rule for your requirement.
You can simply change Inver result of FormstateRule to true.
Make sure to publish your changes.
Please see below image
In the display rules my display rule is not there what should do I now
Hi,
Please debug by adding RibbonDebug=true in url .
Check the link I shared earlier.
Please share screenshot of the command with display rule
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27