Need to create a button i.e., reopen a button when case is closed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2023 04:55 AM
I need to create a button through widget. I have a requirement where when a case is closed or incomplete or cancelled. I need to place a button where the user can click it and able to open the reopen the case.can anyone help with this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2023 05:00 AM
Hi @Community Alums ,
You would need to create a custom button as shown in the below link :
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 02:48 AM
@Sohail Khilji I have tried with above links but it was not working can you please help me with the code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2023 05:28 AM
Create a UI Action:
Navigate to System Definition > UI Actions in the application navigator.
Click on "New" to create a new UI Action.
Fill in the following information:
Name: Enter a name for your UI Action, e.g., "Reopen Case."
Table: Select the table that corresponds to your cases, e.g., "Incident" for incident cases.
Action name: Enter a unique action name, e.g., "reopen_case."
Client: Check the box for "Client."
Show Insert: Leave this unchecked.
Show Update: Check this box to display the button on the form.
Condition: Define the conditions under which the button should appear. For example, you can use conditions like active==false (for closed cases), state==3 (for canceled cases), or any other conditions that match your requirements.
Script: Enter JavaScript code to perform the reopening of the case
function reopenCase() {
current.state = 2;
current.update();
}
reopenCase();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 02:51 AM
@Harish Bainsla I need script on widget not on ui action