Acknowledge button

shohebshaikh
Giga Expert

When I click on acknowledge button of the incident ticket the status changes 15, it should be acknowledge.

Please assist

7 REPLIES 7

sirishasatya
Kilo Expert

Change UI action script according to your requirement.


Chuck Tomasi
Tera Patron

Hi Shoheb,



The button is known as a UI action. Your task is to modify the script accordingly.



Your job is to find out what the VALUE is that corresponds with the state Acknowledged. To do this, right click on the label next to State and choose "Show choices". A list will appear. Find the row that corresponds with the table, field, language, and label "Acknowledged" and note the value in the VALUE column.



Go back to your incident form.



You can modify how it behaves by right clicking the bottom button (not the one on the top for some reason) and choose Edit UI action. The script determines what happens when you click the button. Somewhere there is a statement like this:



current.state = 15;



change it from 15 to   the value you noted from the choice list.



UI Actions - ServiceNow Wiki


Customizing Choice Lists - ServiceNow Wiki  


shohebshaikh
Giga Expert

Hi Chuck,



You did it again. It worked


Don't forget to mark it correct so others can find the solution quickly in the future. Thanks.