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

Forum Posts

UI Action setRedirect not working on external link

While trying to do a action.setRedirectURL to an external link, when I run the UI action, nothing happens.  ServiceNow goes to a blank screen. Code is as follows but I am at a loss as to understand why this is happening: var url = 'http://www.yahoo.c...

tahnalos by Kilo Sage
  • 2196 Views
  • 21 replies
  • 1 helpfuls

embedding widget from ng template

I have a template that loads fine from the sp-model directive that I'm passing form data. I'm just trying to embed a widget  within it.  From just the html the widget loads correctly.  From the sp-model directive using the custom template though, it ...

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

Resolved! How to display Label instead of the Value?

Hi, I am working on a UI action to create an incident from a demand. I am trying to bring over the state from the demand to the incident. However it is coming to the incident as the value instead of the label. Below are the different ways I have trie...

find_real_file.png

UI Action to Check for Mandatory fields before Updating State

Hi All, I have requirement to update the state using the UI action and this UI action should update the state only when Mandatory fields are getting populated .  This is UI action is making state to 'Closed' and we have UI policy to make certain fiel...

Mrman by Tera Guru
  • 5700 Views
  • 13 replies
  • 4 helpfuls

Resolved! Asset based on requester of catalog item

I have the following script includes, and calling it on the Asset reference field on my catalog request form.The goal is to pull the list of assets of the 'requested_for" user. Any idea why this script does not work?function BackfillAsset() {   var g...

Resolved! make comments mandatory when UI action is clieked

Hello  I have a UI action when clicked it will change The incident state to assigned and additional comments are mandatory  I am trying to use this below script but having some trouble to show up the UI action if the client is checked so I removed th...

RudhraKAM by Tera Guru
  • 2295 Views
  • 5 replies
  • 3 helpfuls

Resolved! dateGenerate in query

Hello, I need to get records between specific dates: var query = 'state=3^closed_atBETWEENjavascript:gs.dateGenerate('2018-11-17','00:00:00')@javascript:gs.dateGenerate('2019-01-31','23:59:59')'; //Nov 17 2018 to Jan 31 2019 Please help in correcting...

MarioP1 by Tera Contributor
  • 9381 Views
  • 3 replies
  • 10 helpfuls

Resolved! Email script help to open link record

Hello Community, Can any one help below requirement. I want to display the number in notification body through email script and if i click that number it should be open form view same record and i dont want to open in service portal. anyone help me w...

kalava by Giga Contributor
  • 3839 Views
  • 26 replies
  • 5 helpfuls

Resolved! How to create a report on variable set

I have a table called sn_sm_finance_request that extends sm_order table that extends task table.I need to include the variables on the list as columns specifically the vendor details and request details so that the user can filter /search the list ba...

find_real_file.png find_real_file.png find_real_file.png
jparman by Tera Guru
  • 5185 Views
  • 3 replies
  • 0 helpfuls

Workflow Script Searcher

If you are a developer and maintaining a really complex workflow, this utility will help you.This utility will help you to do some quick string based search on workflows Just in case, have uploaded the same on service-now share too  Implementation ...

Resolved! How to convert a string to ASCII

Hello, We have requirement to convert string to ASCII values. for example: "hello " is the string which needs to be converted to ASCII value 72,69,76,76,79 Thank you.

Choice Field dependent on Glide List

Hi Experts, I have a choice type field and have multiple values in the drop down but need to make only relevant values to be available based on the value in another field (its a glide_list ) . I tried the dictionary for choice type and declared as de...

SNowUser11 by Kilo Guru
  • 1565 Views
  • 3 replies
  • 1 helpfuls