How to disable change record form context menu ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 09:41 PM
Hi Community,
I wish to disable option "Create New release" from form context menu of change record.
Kindly guide me how to achieve it. Also, is it possible to make that option appear again based on workflow activity of change record. I mean to say when "Link Change to Release" task is generated in workflow/change the option "Create New Release" must be visible.
Thanks,
Hritik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 09:47 PM
Hi,
Open UI actions and find "Create New release" with table name as Change Request [change_request] table.
You have to remove the check box - Form Context menu and save it. After that it will not show the button on context menu on change form.
To hide & show based on task, you have to control it through the Condition field.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 09:58 PM
Hi Sagar,
Yes, that will remove the option from context menu, but I also want to make the option visible after change task is generated in record. Is this feasible ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2022 10:12 PM
Hi,
Is there any state changed or field changed, when the task get generated? Else you have to check it in Script include, where the tasks is created under your request.
If yes, then show, else will be hidden.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2022 12:19 AM
Hi Hritik,
You need to set 'Active Checkbox--> False' on your required UI Action and if you want to control the visibility of your UI Action you need write a Script Include and call that Script Include on UI Action Condition Field using:-
new SI name().myFunction();
If my answer will helpful for you, Please mark my answer Correct/Helpful.
Regards,
Surbhi