Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Create new Variable and auto fill

JVINAY
Tera Contributor

Hi Team,

My Requirement :

I need to Create 3 variables and auto fill .

Requirement:

please include the following questions and automatic fill in:

Question 1: Is this consult/inquiry associated with a business application?
Answer: Field selection from AppLab APM listing
Field display from selected: APM# - Business application name (cmdb_ci_business_app)

Question 2 : Is this consult/inquiry associated with a CIR:
Answer: Field selection of CIR - Central Intake [u_cloud_intake_request]

Question 3 : Is this consult/inquiry associated with a CIR:
Answer: Field selection of CIT - Cloud Task [u_cloud_intake_task]

 

Which Variable type should be used ?

Please help me , How can I achieve this.

 

 

 

17 REPLIES 17

@Community Alums 

Thank you for your Quick response.

for Auto fill , help me sample catalog script or UI policy condition.

 

Thank you..

Community Alums
Not applicable

Hi @JVINAY You can take any example of on-load client script with glideAjax.

reference link: https://www.servicenow.com/community/hrsd-forum/onload-catalog-client-script-not-working/m-p/3154511...

 

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @JVINAY 

What do you mean by auto fill, at page load or based on other reference value?

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

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

@Dr Atul G- LNG 

What do you mean by auto fill:  based on other reference value?

 

Thank you for your response.

Like If you select user, then the user location get auto populated in next variable.

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

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