Resolve button on case form should be grade out when we click Send For Approval button on form heade

Nagurbee1
Tera Contributor

Hello Everyone

Recently I got a requirement that Resolve button on case form should be grade out when we click Send For Approval button on form header (as shown in the screenshot).

Could you please help me to achieve it ?

 

Thanks in advance

Nagurbi

3 REPLIES 3

Mark Manders
Mega Patron

Can you share the screenshot? It's not here.

Also: you can't 'grey out' a button. You can hide it, based on conditions (like state being awaiting approval, or something like that). Without the screenshot it's unclear if you are on the service portal, workspace or legacy view, so the way to achieve this is depending on that, but your solution will be in hiding the button, not greying it out.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Nagurbee1
Tera Contributor

Hi Mark

Thank you so much for your quick response and here is the screenshot.

 

 

Thank you

Nagurbi

 

 

Mark Manders
Mega Patron

As I mentioned: you can't grey it out. I would add a condition to it to not show up if it's awaiting approval, so your requirement is met. The only other thing you could do is to apply extra code to the button to validate if the status is awaiting approval and if so, show a message that the ticket can't be resolved if in this state, but hiding would be better.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark