Redirect and populate value in to a specific field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 05:57 AM - edited 02-15-2023 06:16 AM
Hi,
I was able to find resource online to redirect to a specific page in the workspace but I am unable to configure where I need the category field to populate a value.
Here is the UI Action | Workspace Client Script
function onClick(g_form) {
var URL = "https://dev112200.service-now.com/x/964096/corp-audit/record/x_964096_my_test_1_control_master/-1/params/query/category=standard";
top.window.location = URL;
}
When the button is clicked
it bring me to a new record page in the workspace and I want this string field to populate a value.
I have tried sysparam_query but it only works on the form but not the workspace form.
Any suggestion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 06:34 AM
Hi there,
Will the category be set conditionally?
If not, you could use an onLoad client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 06:38 AM
Currently, no condition set to the category field. But I want the category populate a value "standard" each time the button is clicked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 06:41 AM
Okay, in that case set the default value of the field by configuring the dictionary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 06:44 AM
Would you kindly guide me?, I'm not following what you mentioned