Original Value on HR case Description

SumanthMora
Mega Guru

Hi,

On my record I have variable called name referenced to sys_user table.

After form submission form the portal why the case description show the logged in  user value as well next to the variable as orginal value

find_real_file.png

I'm aware this is populating from "hr_CaseUtils" script include by the method "_getDescriptionFromAnswers ".

How to avoid that.

 

1 ACCEPTED SOLUTION

Tried, though because the blanc value it is ignored:

find_real_file.png

Tried with a ".", works so the getMessage theory is oke.

find_real_file.png

Only works on SP:

find_real_file.png

Of course you could also go for editing the Script Include like I described. Though I personally would avoid changing the Script Include if possible (then it's not out-of-the-box anymore and updates from patches/upgrades will ignored).

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

11 REPLIES 11

Hi there,

You are missing the last ")".
The key is not exactly the same as what is in the getMessage in the Script Include.

Everything between the '':

' (original value: {0})'

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

Ahhhh

Leaving it blanc will make the message be ignored. Just tested this on my PDI.

Though working if I just hit a ".". So the theory of the sys_ui_message works, though just not with blanc value. Also tested with " ", that does work on Service Portal but does not work on Platform UI.

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

Ohhh.

What could be the exact config for my sys_ui_message. Could you please paste the screenshot of yours.

Tried, though because the blanc value it is ignored:

find_real_file.png

Tried with a ".", works so the getMessage theory is oke.

find_real_file.png

Only works on SP:

find_real_file.png

Of course you could also go for editing the Script Include like I described. Though I personally would avoid changing the Script Include if possible (then it's not out-of-the-box anymore and updates from patches/upgrades will ignored).

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

Thank you Mark.