- 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-29-2026 02:08 AM
Thanks for editing your comment !
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:07 PM
nope, seems something is wrong and is customized in your instance
For type onChange it will show Field name, for type onLoad it will hide it
Field name won't show for onLoad
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
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-29-2026 07:19 PM
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
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:11 PM
@Sathwik1 , no . Fieldname is Visible and mandatory for OnChange Client Scripts.
Reload the page and try one more time. If the issue still exists, you may consider reaching out to Servicenow by raising a HI case.
Regards,
Nayan
