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.

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

Ok, HUGE thanks. 

I have absolutely no idea how this is possible, but turns out we have the 'Value' not added to the form.
So it does indeed work exactly how I thought it is supposed to., thanks.

whenever you got it please update, I'm also facing same issue

Hey @AbhishekS603265 
I was also facing difficulty while working with value action; however, after giving some random shots, it worked for me.
Let me know if you are still having issues.

yes, still I'm facing same issue

Hey @AbhishekS603265 
Can you share your use case please?