How to use Value Action field in UI policy action

sruthi22
Tera Contributor

Hi All,

 

I have observed that the recent servicenow upgrade has given a new field 'Value' in catalog UI policy Action.

And when 'Set Value' check box is selected, we get  field to autopopulate the Value.

I would like to know, would this field work as reference qualifier? (as in, can we give a javascript inside this field? or it should be a direct hard coded string value?)

 

Thanks in advance,

Sruthi.

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

 

Hi Sruthi,

The value action just runs g_form.setValue(field, value), it's not intended for computed values by invoking a javascript function

View solution in original post

10 REPLIES 10

Kieran Anson
Kilo Patron

 

Hi Sruthi,

The value action just runs g_form.setValue(field, value), it's not intended for computed values by invoking a javascript function

This seems very limiting.  I bet you can figure out how to make it more useful by accepting something like 

g_user.userID or setting the value to anything dynamic.

Hi @Kieran Anson  can you elaborate on that?  I swear to God, this action does nothing for me. When I set the Value Action to Set Value nothing happens. I thought that there would be a string field shown where I populate what I would like to set the new value to, but nothing happens. 

What does this field do?

If you don't see the field, make sure you're on WDC or later. You may need to add the field onto the form if you don't see it.