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

Forum Posts

How to compare dates in a GlideRecord query

Hi, I'm trying to compare Date fields (not date/time, just date fields). I want it to only get me records where the start dates are after the current end date, or where the end dates are after the current start date. Basically, to ensure no other boo...

Shane18 by Kilo Expert
  • 9044 Views
  • 10 replies
  • 2 helpfuls

Resolved! View Rule based on field value

Hi,I'm able to show a User view based on the User role.How can I add further condition of showing the view based on user role and current field value for that record user opened. (Lets say if status = 'NEW' / 'IN PROGRESS', I want to show a different...

find_real_file.png
tkrishna29 by Giga Guru
  • 6159 Views
  • 10 replies
  • 0 helpfuls

How to get all group name of current login user

Hi All,   I want to get all the group names of the current login user. instead of "GlideRecord" option i want to get the group name list.   I used the below script but return the sys id of all group name but i want to display value   var myGroups = g...

ramesh_r by Mega Sage
  • 5181 Views
  • 4 replies
  • 2 helpfuls

Resolved! auto-populate email address in record producer field

Hi all,I'm building a record producer to capture a specific incident with one of the fields requiring a contact email address.In most cases we already have this information available within the Sys_User table which means I should be able to auto-popu...

Resolved! How to STOP form from submitting with GlideAjax?

Hello, I have a case where I need to prevent the form from submitting depending on what is returned in the GlideAjax call. I know asynchonous GlideAjax won't work because it submits without waiting for the response and Synchonous it not recomended an...

andresgt by Mega Expert
  • 3993 Views
  • 4 replies
  • 1 helpfuls

Resolved! Field validation using Client script

 Hi , Can someone help me to write Client script to validate UserID variable on Catalog item. User should be able to enter firstname.lastname in UserID field. If user enters firstname'  ' lastname, it should show alert message.   Regards, Meenal Ghar...

Resolved! Cloned SC Catalog Item widget not working.

Hi there, I am trying to clone the SC Catalog Item widget and making it work for a record producer in the portal. But the cloned widget is throwing a javascript error in the console and also the record producer is not getting loaded. I have tried to ...

find_real_file.png
abhi_29 by Tera Expert
  • 2668 Views
  • 3 replies
  • 12 helpfuls

Count clicks in Portal

Hello Everyone, Is there a way to count how many clicks made in the portal quick links. Ex: We created widget in Service portal for the quick links using <a href="https://www.google.com/" id="link" target='_blank'>Quick Link 1</a>. So we want to coun...

find_real_file.png

Multi Row Variable Set Scoped App

Hi, I'm trying to utilize the multi row variable set in my Scoped Application, but I am running into errors attempting to utilize the documented methods (getRow() and getRowCount()) Evaluator: com.glide.script.fencing.MethodNotAllowedException: Funct...

adam_katulak by Tera Contributor
  • 2020 Views
  • 4 replies
  • 4 helpfuls

Separate Date and Time field to get just Time value

Hi All,I have a Field: Start Date which is a Date Time type. I need a way to separate the Date from time and get just Time value from the fieldAm writing the script in Business rules.Any input will help me solve the issue.Thanks,Vtred

vtred by Tera Contributor
  • 4845 Views
  • 7 replies
  • 3 helpfuls

How to use session variables?

I am trying to use session in servicenow in server side as well as in client side. Can anyone please let me know how can I put variables and later on get them from client side as well as from server side? Also please mention how can I check whether a...

Custom Email Layout Not Working

Hi community,  I am working on customizing email layouts so that our customer's logo and color's display on all emails. However, no custom layouts are working.  I have created a layout from scratch and applied it and it wont' work. I have also used a...

Marskh11 by Tera Guru
  • 1308 Views
  • 3 replies
  • 0 helpfuls