Choice from static choice is showing in Lower case even if its label is in upper case in Virtual agent

Nikita35
Kilo Guru

Hi 

I have used static choice variable where I have given several choices to select the type of account.

here is the screenshot:

find_real_file.png

However in the output preview of virtual agent, It is showing in small case.

find_real_file.png

Can anybody advise on this?

1 ACCEPTED SOLUTION

Just also simulated this. Especially the last bit curious if that's your case.

So for example, you could have a choice with label "SAP" and value "sap". Though if you would have a UI Message [sys_ui_message table] with a record that has key and message "sap", this will overwrite your label from your choice. This also happens even if your label is first letter uppercase and your UI Message key is all lowercase. Then still, the UI Message will overwrite your label from your choice.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

15 REPLIES 15

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Interesting one. Could it be that you added "sap" first and later corrected this to "SAP" (or maybe forgot to publish after this change?)? What if you remove the choice, save + publish, and add the choice again?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

You could also check the  sys_cb_design_topic table, open your topic, and search in the Design definition field for:

[{"type":"Choice","choices":[

Within there, the choices should be visible. For example:

{"name":"Test","element":"test"}

Could you also check if there's a UI Message record for "sap"? It could be, that both the key and message for this is "sap".

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Just also simulated this. Especially the last bit curious if that's your case.

So for example, you could have a choice with label "SAP" and value "sap". Though if you would have a UI Message [sys_ui_message table] with a record that has key and message "sap", this will overwrite your label from your choice. This also happens even if your label is first letter uppercase and your UI Message key is all lowercase. Then still, the UI Message will overwrite your label from your choice.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

This is in Messages table

find_real_file.png