Is it possible to a new field on the form using client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2024 09:23 PM
Is it possible to a new field on the form using client script?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2024 09:27 PM
Hi there,
Can you explain your question a bit more or over? I think there are some words missing which makes it impossible to understand what you are after.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2024 09:38 PM
The actual Problem is-
When user selects pending from state field dropdown, then one new field dropdown Sub Status should be displayed below state field, which contains values such as: Awaiting Moderation, Customer Action, Need Info and Hardware Requested.
Although I have solved it using scripting except that sub-status field I created using service-now out of box functionality. I created the choices in sub-status field using scripting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2024 12:47 AM
What you are mentioning sounds like UI Policy should be preferred before any scripting.
But what is your question now? I don't see it.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2024 12:58 AM
Hi @pk16514
I guess you are mixing this. The simple way to do is UI policy and best example is check on Incident record
State = On Hold
and It bring new field On Hold reason.
In this no code is required . have a look and share feedback.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
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/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************