How to hide the error message?

User329467
Tera Expert

Hi,

 I have a requirement for disabling the auto-population feature of the field 'Planned Start Date' on the form of 'Project (pm_project)' table.

While disabling the default value of the dictionary entry for the field, I encountered the error message stating 'Enter Valid Date' message shown in the screenshot provided.

I'm in a requirement to hide or disable the error message populated under Planned Start Date field.

Kindly, address where to disable it or where to refer?

Thanks,

Priyatham.

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@mr.priyatham 

this is the analysis.

1) this client script is calling this UI Script function

2) check line number 11 and 15; it is coming from that place based on some validation for end date

Client Script:

Name: Calculate Duration From End Date

URL: https://instanceName.service-now.com/nav_to.do?uri=sys_script_client.do?sys_id=0daec510bf21010007fdbeba3f073939

Line: 53

UI Script:

Name: PmClientDateAndDurationHandler

URL: https://instanceName.service-now.com/nav_to.do?uri=sys_ui_script.do?sys_id=fa996ad49f023200c34b5bb0657fcf5f

Line: 11 and 15 for field message

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Have to reproduce, though this looks like Client Side scripting. Have you checked the Client Scripts or UI Policies? For code like g_form.showErrorBox or g_form.showFieldMsg? 

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

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Dhananjay Pawar
Kilo Sage

Hi,

Another way is search that message in global search. It will show all records where that has used so you can remove that.

find_real_file.png

Thanks,

Dhananjay.

Ankur Bawiskar
Tera Patron
Tera Patron

@mr.priyatham 

this is the analysis.

1) this client script is calling this UI Script function

2) check line number 11 and 15; it is coming from that place based on some validation for end date

Client Script:

Name: Calculate Duration From End Date

URL: https://instanceName.service-now.com/nav_to.do?uri=sys_script_client.do?sys_id=0daec510bf21010007fdbeba3f073939

Line: 53

UI Script:

Name: PmClientDateAndDurationHandler

URL: https://instanceName.service-now.com/nav_to.do?uri=sys_ui_script.do?sys_id=fa996ad49f023200c34b5bb0657fcf5f

Line: 11 and 15 for field message

find_real_file.png

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks Ankur, it helped.