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

Forum Posts

gel is not a function in Catalog Item OnChange in ITIL

I'm using a list collector in a catalog item. I need to check if the left bucket is empty on change, if so, enable a second field. I wrote a script that tries to get the left bucket using "gel", but when I run it in the ITIL view, it throws a JavaScr...

Jertay by Tera Contributor
  • 2883 Views
  • 4 replies
  • 1 helpfuls

Resolved! How to get Day from Date

Hi, function onChange(control, oldValue, newValue, isLoading) { if (isLoading || newValue == '') { return; } var seldate=g_form.getValue('date'); var objdate=new Date(seldate); var selday=objdate.getDay(); alert(selday); if(selday==0||selday==6) { al...

chanikya by Mega Sage
  • 8658 Views
  • 29 replies
  • 3 helpfuls

Resolved! How to getHours

Hi, some one please suggest me how to get Hours only from  new GlideDateTime()).getLocalTime(). all client  systems are running in PST zone.

chanikya by Mega Sage
  • 4569 Views
  • 40 replies
  • 4 helpfuls

Resolved! Get the value of a requested item variable on workflows

Hello,I'm trying to set a workflow to get the value of a requested item variable.I tried to get these information using the GlideRecord sc_item_option_mtom but the request sys_id never match the the request_item .Do you have an idea why ?Thanks in ad...

Hasan4 by Mega Contributor
  • 4923 Views
  • 7 replies
  • 2 helpfuls

Resolved! How to run a Scheduled Job "daily" but exclude weekends

I need to create Scheduled Jobs following a script we created that initiates a Catalog Item, and the Scheduled Job needs to run daily and exclude weekends but I don't see how to select Daily excluding weekends. Any suggestions/direction would be appr...

find_real_file.png
carlav by Kilo Guru
  • 4287 Views
  • 6 replies
  • 4 helpfuls

Resolved! string field to contain only number and special character like $

Hello Team, I have field called fee, which should contain numbers and $,could you help on this, as it should take special character like $ var regexp = /^[+]?\d*$/; if(!regexp.test(newValue)){ alert('Please enter numeric value'); g_form.setValue('u_e...

chandan1994 by Tera Contributor
  • 1479 Views
  • 1 replies
  • 3 helpfuls

Resolved! How to skip RITM approval if Manager is the Requested By

Hello, I have a catalog item where I have created a reference variable called "Requested by".  If this field is the same user that the approval is going to I want the approval skipped.   How do I accomplish this? Thank you in advance! Joe

Resolved! Service Catalog category icons/images how?

Ok, I really thought this would be simple. I've setup our service catalog. I've added the categories I want seen. But why can't I add icons to the category widgets on the service catalog page? Why is my only choice to "upload" new images? When I setu...

Resolved! Field value getting cleared OnLoad

Hi All, I am populating Manager of user in opened_by field using script include and Glide Ajax. The opened_by field has logged in user by default. So I want it to work on both onLoad and onChange. The thing here is, for suppose user in opened_by fiel...

Ajay37 by Tera Contributor
  • 2342 Views
  • 33 replies
  • 0 helpfuls