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

Community Alums
Not applicable

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

5 REPLIES 5

@Sohail Khilji I have tried with above links but it was not working can you please help me with the code

Harish Bainsla
Tera Sage
Tera Sage

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();

@Harish Bainsla I need script  on widget not on ui action