Is it possible to a new field on the form using client script?

pk16514
Tera Contributor

Is it possible to a new field on the form using client script?

4 REPLIES 4

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

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


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

LinkedIn

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]

****************************************************************************************************************