In OnLoad Client script, why fieldname is showing as mandatory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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
yesterday
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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
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
yesterday
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 || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
