Redirect and populate value in to a specific field

Spaceballs
Kilo Sage

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

Spaceballs_0-1676469137124.png

 

Spaceballs_1-1676469155396.png

 

 

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

Spaceballs_2-1676469202833.png

it bring me to a new record page in the workspace and I want this string field to populate a value.

Spaceballs_3-1676469324259.png

I have tried sysparam_query but it only works on the form but not the workspace form.

 

Any suggestion?

 

 

 

7 REPLIES 7

-Andrew-
Kilo Sage

Hi there,

Will the category be set conditionally?

If not, you could use an onLoad client script.

 

 

@-Andrew- 

Currently, no condition set to the category field. But I want the category populate a value "standard" each time the button is clicked

 

Okay, in that case set the default value of the field by configuring the dictionary.

Would you kindly guide me?, I'm not following what you mentioned