Resolve button on case form should be grade out when we click Send For Approval button on form heade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 03:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 03:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 04:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 04:47 AM
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