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.

Auto select drop down if URL has the XXXX Value

David Cross
Tera Expert

Hii All, Can you please help me to build this functionality.

 

I have build 1 catalog item & People are raising request via 3rd party application.

 

Now, i have a requirement that if the URL has Example1 then the Drop down value should be auto selected to Example1 & if the URL has Example2 then the drop down value should be auto selected to Example2 and so on...

 

[ Example1,Example2,Example3 ] is drop down value 


Drop Down has 3 Application and there are 3 different application,

 

https://xxx.service-now.com/sc_req_item.do?ys_id=daXXXX8&sysValue="Example1"

https://xxx.service-now.com/sc_req_item.do?ys_id=daXXXX8&sysValue="Example2"

https://xxx.service-now.com/sc_req_item.do?ys_id=daXXXX8&sysValue="Example3"

 

1 ACCEPTED SOLUTION

luffy3478
Tera Guru

URLs mentioned in the question are misleading.
Can you try the solution mentioned in this thread. https://www.servicenow.com/community/developer-forum/how-do-you-read-url-from-catalog-client-script/...

View solution in original post

3 REPLIES 3

luffy3478
Tera Guru

sysValue="Example1"
replace sysValue with field backend name, the field will get autopopulated

This did not work, Can you please suggest here

https://SNOW.com/now/nav/ui/classic/params/target/com.glideapp.servicecatalog_cat_item_view.do%3Fv%3...v_application_name%3DCASE

 

v_application_name = CASE [ Field should be auto populated to CASE ]

luffy3478
Tera Guru

URLs mentioned in the question are misleading.
Can you try the solution mentioned in this thread. https://www.servicenow.com/community/developer-forum/how-do-you-read-url-from-catalog-client-script/...