Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

Forum Posts

How to upload a JS file in ServiceNow?

Hi, We have a UI page that creates the front-end for one of our applications. The javascript part (built using Angular 7) is currently stored in a UI script and is included in the UI page by using <script> tag. So far so good. But now as the applicat...

bala_sn by Kilo Expert
  • 9045 Views
  • 5 replies
  • 0 helpfuls

Resolved! Filter Reference Field based on Another Variable.

Is there a way to do this? I have two fields; u_location (reference to cmn_location table) and u_supplies (reference to u_supply_list table). On the u_supply_list table, I have a checkbox variable u_omaha and when checked I know that supply is only a...

Resolved! Variable type UI Macro not visible in portal!!!

I have created a variable type Macro just to populate one hyperlink. Variable is visible in the instance view (Try it from the maintain items UI Action). But same variable is not visible in service portal. Any suggestions! Please find the screen shot...

Community Alums by Community Alums  
  • 3302 Views
  • 1 replies
  • 0 helpfuls

Resolved! Setting Display Field on List Collector in Service Portal

So I am creating a form where managers can request to have members removed from Groups.  So, when they select a Group, I want a List Collector populated with the members of that Group, so the List Collector is based on the Group Member table (sys_use...

jmiskey by Kilo Sage
  • 5540 Views
  • 6 replies
  • 4 helpfuls

Resolved! Regex for phone numbers.

I'm not too good with Regex.  Does anyone know how I could format it so that a phone number field will accept only numbers, parentheses, and minus signs?  Currently it's set up as /^\d+$/ and the field only accepts numbers.

Andrew122 by Mega Expert
  • 11629 Views
  • 5 replies
  • 4 helpfuls

Metrics and business rule

Hi, We have a requirement to calculate business duration and duration fields on SC task and RITM as the difference of total duration and on-hold duration (custom fields). We had created a metric for calculating the on-hold duration, and then used the...

anusarma by Kilo Expert
  • 2349 Views
  • 2 replies
  • 0 helpfuls