We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

chaithu1489
Kilo Sage

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

chaithu1489
Kilo Sage

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 ]

chaithu1489
Kilo Sage

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/...