State backend value showing on click of button

Pallavi Gawand1
Tera Contributor

In change task form when clicking on 'Close Task' button in the state field it is coming as backend value '3' . But after submitting it is coming correctly as 'Closed'. What could be the possible reason for this and how it can be fixed?

 

3 REPLIES 3

ServiceNow10sun
Giga Guru

For debugging purpose try to change the status to pending or any other state apart from  closed task and see if this is happening the same with other  state as well . 

and check if any script is running behind to show the backend value of the state choice. 

It is happening just for Closed state while clicking on that 'Closed task' button. It is not happening for other states. There are some business rule written for that but it is not impacting.

Bert_c1
Kilo Patron

Hi,

 

"Choices" (sys_choice table) have a value ('3' in this case) and a label ('Closed' in this case). Values are stored in the database, when rendered the label is used.

 

See:

 

https://[instance_name].service-now.com/sys_choice_list.do?sysparm_query=name%3Dchange_task%5Eelemen...

 

This supports multiple languages, so users can see the value in their language.