update in the form by client script

servicenow lath
Tera Contributor

I need a script , when the incident form is new record. the  short description field  should be get automatic updated and that particular new Record should view in "test view"

how can we do this in  client script

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

What's the reason for asking Client Script here? You haven't written anything that for which Client Script would be the go to.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

suvro
Mega Sage
Mega Sage

to change view

https://servicenowguru.com/scripting/client-scripts-scripting/change-form-view-client-script/

ON LOad Client script

if (g_form.isNewRecord()){

 

 switchView('section','incident','test view');

}