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

Forum Posts

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
  • 2583 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
  • 7735 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
  • 2496 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
  • 3892 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

Resolved! Hide or remove a choice list value based on another list value

i have a "Request_Status" field in Request Table(sc_request) with a choice list of 5 values. I have another field on the form "state" field. If "Request_Status" field has a value "approved or completed" then user shouldn't be able to select "closed s...

find_real_file.png
manibaig by Mega Guru
  • 4723 Views
  • 4 replies
  • 2 helpfuls

Resolved! Hiding a U-action on a related list when no rows are found

Hi, I pretty much explained it in the title, but I've got this UI-button on a related list called 'Enroll for Training', which lets the user enroll the current employee for a training in that list. If no training is present in that list, I would like...

Chris P_ by Tera Expert
  • 1503 Views
  • 4 replies
  • 1 helpfuls

Make Inactive when State is Cancelled

Hi Guys, I have a doubt that I want to make the Incident as Inactive once the state is changed to Cancelled. Please let me know on this how to achieve this functionality.       Regards, Gourav

SNOW46 by Tera Contributor
  • 1727 Views
  • 4 replies
  • 1 helpfuls

Resolved! Business Rule should kick off before UI Action Update

I have a simple UI Action that is a form button that closes a change record: moveToClosedUnAuth();function moveToClosedUnAuth(){current.state = 3; current.update(); action.setRedirectURL(current); / } I have a before Business Rule that checks some t...

kemmy1 by Tera Guru
  • 1808 Views
  • 3 replies
  • 1 helpfuls