We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Forum Posts

Resolved! Update target with empty or Nulll value by transform?

Normally transform map doesn't update the target field with Null or empty value when the source field is empty or Null. I can use "source script" for Updating the target with Null when the source is Null. However I wonder whether there a simple prope...

Resolved! GlideAjax - Resolved

Hi ServiceNow Gurus!I have a catalog client script that runs "On Change". This script gets the value from "Field A" in the CMDB table and is displayed on the "Field AA" in the Service Catalog form.What I want to achieve is to populate multiple fields...

carlocsa by Kilo Expert
  • 1571 Views
  • 2 replies
  • 0 helpfuls

Clear/Set value of g:ui_reference field in ui page

Hi Guys,         In the below UI page,                         1. I want a function wherein, if shared check box is enabled, Assigned to reference field should be cleared. I tried with the below client script, the value of assigned to field is changi...

"New" Button and "Related List Forms" in ATF

So I am trying to figure out how to possibly create a test in ATF that will allow me to either press the "New" button or click a hyperlink inside of an ATF test.I realize these will either open/navigate me to a new form/page. But I want to (at the ba...

RelatedListForm.PNG
flipflorey by Kilo Contributor
  • 2920 Views
  • 3 replies
  • 3 helpfuls

Resolved! Search Sources - Service Portal

Hi Community, I added a handful of Search Sources to my service portal, however I can't seem to get my last one (order 400, Documentation) to work. The other 3 work seamlessly, KB and SC are clones from the OOTB that I edited slightly while Cases ref...

Screen Shot 2017-12-12 at 10.43.27 AM.png Screen Shot 2017-12-12 at 10.43.41 AM.png
hanjie by Kilo Contributor
  • 4301 Views
  • 5 replies
  • 2 helpfuls

GlideDateTime.subtract doesn't work

I used the following commands on default value to calculate the number of days subtracting current date to due date but didn't work. Any comment or advise is greatly appreciated.javascript:calendar_duration = GlideDateTime.subtract(due_date.getDispla...

abrouf by Kilo Sage
  • 7094 Views
  • 21 replies
  • 0 helpfuls

Resolved! UI Policy not making field visible

We've recently added a new State value to the Catalog Task table.Label: On HoldValue: -5When selecting this choice, a new field should be shown via UI Policy, On hold reason [u_on_hold_reason]This worked in our non-production instances, but once push...

ui policy_01.png ui policy_02.png ui policy_03.png ui policy_04.png
kirkr by Tera Expert
  • 3412 Views
  • 4 replies
  • 0 helpfuls

Resolved! GlideRecord not inserting if I add query()

I have two custom tables, table a and table b. Once a record is updated on table a I want to move the record to table b and delete it from table a. I should note that this is being run from a business rule. My approach://first gather all of the data ...

Resolved! Set value of list field type

I have a list field type (u_year) inside table sn_compliance_policy_statement. My choices in that list field are years, such as 2016, 2017, 2018, etc. I am trying to query all records with the active field set to true and then set the value of the u_...

find_real_file.png
trmiller by Kilo Expert
  • 5116 Views
  • 5 replies
  • 0 helpfuls

attaching workflow for ritm

Hi ,I had requirement : To reopen the request and a new ritm should be created and new task created.So I did ui action Reopen. It is reopen request and creating ritm but the workflow is not attched to new ritm. Can any one help me how to attach same ...

Resolved! Client Script to account for date format?

I have two date fields (not date/time) on a form that are used for the start and end of an event.I created a onLoad client script that calculates the difference between the start and end dates to return the number of days.   Additional fields will ap...

ndt13 by Giga Expert
  • 6662 Views
  • 7 replies
  • 6 helpfuls

On Incident form SLAs are not displayed

when i am Create An Incident as any user ITIL/userobserve that once incident created with all mandatory fields click on Tab Task SLAs when i observe that Task SLA tab is empty.expected:On Task SLAs tab, SLAs should be visible to the user.

find_real_file.png
naaani by Giga Contributor
  • 4765 Views
  • 22 replies
  • 2 helpfuls