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

Forum Posts

Resolved! ServiceNow Development Process

I have a process question for fellow #ServiceNow developers.  How do you manage your ServiceNow development cycle from request to completion?  In ServiceNow using the Agile process? Epics > Stories, etc? Using SCRUM or Kanban-style board? If so, how ...

Resolved! Display Info message only on list layout

Hello, I have a " before query" business rule that displays info message. Before query business rule configuration is, When:                            Display Query Advanced tab:   var c='Use * to search';gs.addInfoMessage(c);   The issue is the inf...

G Balaji by Kilo Guru
  • 3982 Views
  • 2 replies
  • 5 helpfuls

Resolved! Get Choice Label and not Value

Hi! How I do I get Choice Label and not the Value. This is on Client Side var priorityValue = g_form.getValue('priority'); var priorityLabel = g_form.getOption('priority', priorityValue).text; I am doing this code and nothing! Thanks in advance!

Community Alums by Community Alums  
  • 5416 Views
  • 5 replies
  • 1 helpfuls

Dynamically populating reference fields

Hi,  I’m trying to re-use a script to enable the approval fields to be dynamically set to the users departments various assigned approver – referencing the department and then populating the Level 1, 2 and 3 approval fields:    The data is held in th...

find_real_file.png find_real_file.png
Chris169 by Kilo Contributor
  • 3363 Views
  • 4 replies
  • 0 helpfuls

Resolved! Dynamically populate reference field based on another

Hi, I’m new to the scripting side of SN development and I have a requirement to auto populate  field based on a user: When a user enters a name in the ‘Requested by’ field:  I want the ‘Department’ field to automatically populate with that users assi...

Chris169 by Kilo Contributor
  • 9114 Views
  • 4 replies
  • 2 helpfuls

Extending sc_req_item, how do I map the catalog?

We have a bunch of Catalog Items in the Service Catalog that are going to be sent to a wide variety of integrations.Normally, I would have been ok with just using variables, but the issue here is that these integrations are not able to read anything ...

tahnalos by Kilo Sage
  • 3326 Views
  • 19 replies
  • 8 helpfuls

Resolved! Clear Select Box values on checkbox check

When a particular checkbox is checked, and the 'req_level_safe' value does not equal 'none', the user will receive a pop up message (working currently), and the values of 2 select box variables should be cleared.  My script will not clear the values:...

Resolved! Searching a string and erasing a part of it

Hi, I am trying to implement a fix/workaround to an existing issue in ServiceNow that they are not planning on fixing. We began commenting the Work Notes and Additional Comments into our close notes and occasionally get a "_123STREAMENTRY321_". I wou...

Community Alums by Community Alums  
  • 5499 Views
  • 8 replies
  • 3 helpfuls

Resolved! How to hide an UI Action once planned start date and time passed

Hi,A field Planned Start date which of datetime field type, Revert Change button are on the form. My requirement is to hide Revert Change button once Planned Start date and time is passed.I tried this condition current.start_date <= gs.nowDateTime()b...

Upender by Giga Expert
  • 2808 Views
  • 8 replies
  • 1 helpfuls

SNC not defined in scope app

I am using the following snippet to initiate the creation of a survey instance: new SNC.AssessmentCreation().addRecentAssessor(new_user); var instanceId = ""; if (type_id != "" && source_id != "") //This is an assessable record instanceId = new...

Art Supsiri1 by Tera Contributor
  • 2811 Views
  • 2 replies
  • 0 helpfuls

Resolved! Assign a user role in an ATF test step

I want to use the ATF to test some business rules and other customizations on the User form. One requires a test to create a user and assign a specific role. I have tried several different ways but I cannot figure out how to do this. Simply doing a "...

Peter Farr by Giga Contributor
  • 3474 Views
  • 5 replies
  • 2 helpfuls

Delete custom CI class

Hi, I needed a new CI class in my instance, and mistakenly added them in the Customer Service scope. Now I cannot seem to delete this table and add it in again the correct scope. Any ideas why delete is unavailable for me? Any way to work around this...