Auto populate the value from Reference field to String field

H M Aishwarya1
Tera Guru

Hi,

 

I want Auto populate the value from reference field of group table to string field of change request form, I am trying to do it by using Client script and Script Includes. Its not working as expected.

 

Client script: 

On change of Assignment group in the change request form the below fields should be auto populated

HMAishwarya1_0-1746009338611.png

This reference field is from group table

HMAishwarya1_1-1746009456335.png

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@H M Aishwarya1 

so you can write onChange of Assignment Group + GlideAjax and bring the value and populate on CHG form

share your scripts here along with script include and client script screenshots

OR

Why not show that Group field as Dot Walked field on CHG Form?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @H M Aishwarya1 

Are these fields connected with the assignment group, like in the assignment_group table? If yes, then use the dot-walk, and it will populate the desired values automatically

 

 

 

https://www.servicenow.com/community/developer-forum/assigned-to-field-select-and-manager-name-field...

 

*************************************************************************************************************
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]

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

H M Aishwarya1
Tera Guru

No These fields are not associated with Assignment groups

How are these fields linked with the group? In that case, you need to use dot-walking and set the value accordingly."

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@H M Aishwarya1 

so you can write onChange of Assignment Group + GlideAjax and bring the value and populate on CHG form

share your scripts here along with script include and client script screenshots

OR

Why not show that Group field as Dot Walked field on CHG Form?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader