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

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Resolved! Mandatory Checkbox With Red Asterisk

I am trying to create multiple CheckBox under a Label and have the CheckBox Mandatory (i.e the user must select at least one CheckBox before submitting). Moreover, is it possible to have a red asterisk next to the label as well?   I was able to get t...

find_real_file.png find_real_file.png
JDX7913 by Tera Guru
  • 3518 Views
  • 8 replies
  • 0 helpfuls

Resolved! Access restriction to a Catalog item

Hi All,I have scenario. where I have to restrict users to view the Catalog items in Serviceportal based on the level(a custom field value from sys_user form) configured to the user. Below is the code and it is not working as expected. I am not able t...

find_real_file.png
Venkatesh5 by Tera Contributor
  • 4559 Views
  • 12 replies
  • 0 helpfuls

Resolved! GlideEvaluator Context

So according to best practices we are supposed to avoid the use of eval and instead use the GlideEvaluator.evaluateString (formerly Packages.com.glide.script.Evaluator.evaluateString). But how can you pass context to the GlideEvaluator? For eval, the...

tltoulson by Kilo Sage
  • 12877 Views
  • 9 replies
  • 10 helpfuls

Resolved! Background script to replace old glide_list entries

On my Project table, I have a glide_list field that is referencing a now deleted reference entry (now displays as a sys_id). I've been able to query for all Projects that contain this entry in that field, but I'd like to use a background script to re...

SC10 by Kilo Guru
  • 2669 Views
  • 6 replies
  • 1 helpfuls

Resolved! How I can return this glideajax as JSON?

There I have my solution which works and it returns the name, which is used in Portal side (to show for end-user).Would like to Script include:---------------------------------------------- var getApprover = Class.create();getApprover.prototype = Obj...

jussiaho by Kilo Contributor
  • 7823 Views
  • 6 replies
  • 6 helpfuls

Resolved! Searching locations based on coordinates.

My client uses the Locations table in order to provide a mapping of all servicable assets for our technicians.  However, a new request has come in to be able to search for these locations based on the input of coordinates.  They are asking to narrow ...

tahnalos by Kilo Sage
  • 2582 Views
  • 10 replies
  • 0 helpfuls

Debugging error

Any clue what might be causing this warning that is showing up in the log, or how to find the source of the problem?  org.mozilla.javascript.EcmaError: "__ref__" is not defined.Caused by error in file:/glide/nodes/myinstance004_16027/webapps/glide/it...

Resolved! Set Value of Reference Field via Workflow

I am scripting novice and pretty much take something someone else has done and try to figure out how to use it for our purposes.    I have a workflow where, in one step, I attempt to set the value of a reference field (u_application) with whatever va...

find_real_file.png

Warning on additional comments

Hi I want to warn itil-users every time they attempt to write in the "Additional Comments" field/box (on the incident-form) - that any comment here will go directly to the enduser (or portal).I made an onChange:function onChange(control, oldValue, ne...

warning.png comments.png comment2.png screenmove.png
priisholm by Mega Expert
  • 3980 Views
  • 7 replies
  • 1 helpfuls

Resolved! Creating a child request and passing variables.

Good Afternoon All,I hope everybody had a great holiday break! I am getting back to work on requests for our ServiceNow implementation and one lingering request is something that existed in our old system that I cannot figure out a good way to replic...

Request.png