- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2026 10:57 PM
In OnLoad Client script, why fieldname is showing as mandatory? is it expected?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2026 11:23 PM
FYI
-> onLoad runs when form loads and has no dependency with Field name, hence it doesn't require Field name in it
-> Field name makes logical only when the type = onChange
-> I checked in my PDI and when I created onLoad client script Field name is not shown on form
So this is not OOTB behavior
See below @Sathwik1 for your reference
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2026 10:59 PM
I believe you changed an onChange client script to onLoad, just try to create a new Client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2026 11:02 PM
Would you mind closing your earlier questions by marking the appropriate response as the accepted answer? Members have invested their time and effort to help you, and acknowledging the correct response allows them to receive due credit.
How to show mandatory fields on the pop-up when we clicked on UI Action?
Hardware entitlement backend table name?
In Agent Workspace, By Default I'm seeing "show alerts" it means why default it was hiding why so?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2026 11:03 PM - edited 01-28-2026 11:21 PM
Hi @Sathwik1
look like some customisation in your instance, filed name should not visible on load script.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2026 11:23 PM
FYI
-> onLoad runs when form loads and has no dependency with Field name, hence it doesn't require Field name in it
-> Field name makes logical only when the type = onChange
-> I checked in my PDI and when I created onLoad client script Field name is not shown on form
So this is not OOTB behavior
See below @Sathwik1 for your reference
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
