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

Forum Posts

Resolved! Can I use GlideRecord in a Service Portal client script

This is a part of this question:So I have a custom form in a widget (Service Portal page).By submitting I'd like to store all the data to my table.Firebug says that gr.insert() is not defined:$('#submit').click(function(){               var gr1 = new...

stryker129 by Mega Guru
  • 7956 Views
  • 8 replies
  • 0 helpfuls

Resolved! Dot walk field

Hi guys I have a reference table were I am for walking other field within the table.I have one field called confidential were if checked won't send emails and acl around it. A requirement is to have this field be editable which is fine,kind of overri...

Javascript in URL from Arguments not working

Hi guysI have a menu module with Link Type = URL from Arguments. I have created a function in Script Include (client callable) to build the condition/url. However for some reason, javascript is coming back as NULL.I have tested my code in Background ...

find_real_file.png

Resolved! How to set variables on a requested item made from a script?

So I made a little REST script that will make a request into ServiceNow from a (mostly) publicly accessible web form. Making the request is easy, and right after the request is generated, I immediately afterwards make a service catalog request that i...

alexjyong by Giga Contributor
  • 5787 Views
  • 5 replies
  • 0 helpfuls

Resolved! How to make a sub-question in Survey mandatory?

Hi All,  I am given the task to make the sub-questions in Survey mandatory (depending on the response in the main question). I am needing of a lead or tip where to start.  So, basically, the main question may have 5 different options to response (e.g...

Resolved! update scratchpad variable through script

Hi All,I have a if workflow activity which will return yes or no based on scratchpad variable. but, unfortunately for one request the scratchpad variable is assigned with wrong value and it is creating odd results, so is there anyway to change the va...

Resolved! Tag Reporting

Is it possible to create a report to see when a tag was added to an incident? I have created a database view to join label_entry and incident table and I can report on when the tag was created but I need to know when a particular tag was added to an ...

Phil A by Tera Contributor
  • 9504 Views
  • 4 replies
  • 2 helpfuls

Resolved! The window object not available in a client script

I have written an onChange client script that works in my Development instance, but when I try it in my client's environment it doesn't work.   I am using getReference to pick a value from a form with a callback, and in the callback function updating...

find_real_file.png
lawrenson by Giga Contributor
  • 11768 Views
  • 6 replies
  • 2 helpfuls

How to change the default list, view/form?

I know we can create different lists and forms/views.I am trying to understand how to link different form/views for different purposes.For example:1) I want to show a form other the default one (default_view) when the user clicks the "New" button on ...

pauladams by Tera Contributor
  • 7768 Views
  • 5 replies
  • 4 helpfuls

"Search Knowledge" button in Incident form disappears?

Initially in my dev instance the Search Knowledge button appeared next to the Short Description in an Incident form. It worked, as well.Now, when I create an Incident I see the button flash briefly as the form loads. After saving the Incident the sam...

davidsteimle by Kilo Contributor
  • 3866 Views
  • 3 replies
  • 10 helpfuls

Calling Script Include from Module Filter

Hi All,I am trying to call a script include from module filter using -javascript:AZChangehelper.getCompanyID()Script include is client callable and function is returning sys_id of some group. Is it mandatory to have same function name as script inclu...

ashish_rai by Kilo Contributor
  • 6090 Views
  • 11 replies
  • 1 helpfuls

Resolved! Service Portal not recognizing jQuery library

I am trying use jQuery DataTable with Angular JS in ServiceNow application and it throws following error jQuery(...).DataTable is not a function. Created variable 'j' to avoid conflict between jQuery and AngularJS.

Screen Shot 2017-04-20 at 12.39.11 PM.png

Resolved! How does REST Table API handle optional parameters?

When I use the REST Table API to PUT a record in our incident table, I supply it with mandatory fields in the query parameters section, but not all fields are mandatory; there are dozens that are optional. If I supply the API with the mandatory field...

kimberlylp by Tera Guru
  • 4067 Views
  • 4 replies
  • 1 helpfuls