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

Forum Posts

Resolved! Service Portal says "$scope is not defined"

When I run the following code  in my Client Script on the Service Portal. The console reports: $scope is not defined. Does anyone have knowledge on this?   (function($location) { /* widget controller */ var c = this; function checkLocation() { var lo...

amwebaz by Kilo Expert
  • 3881 Views
  • 5 replies
  • 3 helpfuls

Resolved! GlideAjax to set a reference field in catalog item form

Hi Team, We have a requirement to set a reference field on load. We have done it through sys id using set value, but our client has suggested to use it via GlideAjax instead of hardcoded "sys_id". Hence, I have written a on load client script and scr...

Resolved! Field validation in list view

Hi Team, There is an string field "X", I need to restrict the updation of negative values from table list view. I have "ONSUBMIT" client script which is restricting from form level and same restriction is not applying for list view. How can I achieve...

aahitha2 by Mega Expert
  • 1696 Views
  • 6 replies
  • 1 helpfuls

Close button on Change Request

Hi All, While the change request form is loading and when i click on the Close button.Close code, close notes are not mandatory and the change request is getting closed.Suggestions please!!

Resolved! Rollback in ServiceNow script

We are considering a method to roll back when an error occurs in the process of inserting the contents of the CSV file into the table one record at a time with the ServiceNow script. Is it possible to implement rollback processing in a ServiceNow sc...

Yuki21 by Tera Expert
  • 1196 Views
  • 1 replies
  • 0 helpfuls

Resolved! Which one execute first?

Which one execute first: > Before update Business Rule >Wait for condition activity in workflow What I found in web is "wait for condition" activity will evaluate every time when current record is updated. I think workflow activity will be evaluated ...

find_real_file.png
NK13 by Tera Contributor
  • 1715 Views
  • 6 replies
  • 0 helpfuls

Resolved! Update Catalog Item short description with variable name

Hi I'm looking to update the short description of a catalog item so that it contains a variable from the catalog item. The ultimate goal is to display a variable when the item is added to the cart. I'm trying to use an onSubmit Catalog Client script,...

jyan3 by Kilo Guru
  • 4154 Views
  • 11 replies
  • 3 helpfuls

Resolved! Hide "Remove all" and "Remove Row" from MRVS?

Hi folks, I tried using DOM manipulation to hide "Remove all" and "Remove Row" from MRVS, but unfortunately, it didn't worked out. Went through few codes across community but no luck. Here's my code: For "Remove all" function onLoad() { //Type approp...

find_real_file.png find_real_file.png
RJ12 by Mega Guru
  • 2644 Views
  • 5 replies
  • 2 helpfuls

Resolved! Creating relationship to not to bring all the records.

I am trying to create a relationship between two tables. However, in the condition script, by default, if the condition doesn't match then ServiceNow brings all the records. We are supposed to show empty list if the it does not match. Here is the scr...

TT3 by Kilo Guru
  • 2490 Views
  • 4 replies
  • 3 helpfuls