We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

Forum Posts

does current work in ui action

does current work in ui action, what API i should use instead of current so that i get the same functionality

Rd by Kilo Explorer
  • 10765 Views
  • 7 replies
  • 6 helpfuls

How can I get the display value from oldValue in a client script?

I have a requirement to store the old display value of a reference field in a string field.  I'm using an onChange client script, but I can't figure out how to get the display value from oldValue.  Does anyone know how I can accomplish this?  What I ...

find_real_file.png
gjz1 by Giga Expert
  • 5024 Views
  • 12 replies
  • 2 helpfuls

Resolved! REST API - Get all roles for user

I am trying to get a list of all roles a single user is assigned, however, this query doesn't appear to work https://<instance>/api/now/table/sys_user_has_role?sysparam_query=user.value=<sys_id> ...It returns the entire table Thoughts?

J_ Greene by Kilo Expert
  • 5375 Views
  • 4 replies
  • 1 helpfuls

Resolved! Validation Regex no spaces trailing, leading or inbetween

Hi all, I have a Validation regex for a field within a catalogue item.  It currently does not allow the characters [^"();:<>]+ which works fine. But now I need to prevent spaces being entered at the beginning, middle or end, how can I do this? Can I ...

find_real_file.png
Khalnayak by Kilo Sage
  • 12793 Views
  • 27 replies
  • 0 helpfuls

Resolved! upgrade downtime questions

Will there be a downtime during upgrade? How long does upgrade take? Will users who are already logged in will still be able to login? Will users be logged out if they are logged in during upgrade? Will users be able to login during the upgrade? Is t...

KayRao by Tera Contributor
  • 4639 Views
  • 3 replies
  • 2 helpfuls

Resolved! useraccountcontrol LDAP

Hi I'm trying to figure out how get the value from ldap import and userAccountControl attribute I need to get the value for disabled.ACCOUNTDISABLE     0x0002     2 LockoutLOCKOUT     0x0010     16 Password can't changePASSWD_CANT_CHANGE     0x0040  ...

Melker by Kilo Expert
  • 9023 Views
  • 6 replies
  • 4 helpfuls

How to get List of possible options on choice variable field?

HI, I have a select box variable and 'remove' some options via a catalog client script on load.  Now I need to be possible to list the remaining "possible" options via a catalog client script. How to? Was was hoping it works this way ...    var value...

Zod by Giga Guru
  • 11074 Views
  • 14 replies
  • 4 helpfuls

How to get all the choice values in a script

Hi,I am trying to get all the choice option values in a client script to verify whether the choice field has a particular choice option in it,if not I want to create that option dynamically.Could someone suggest me,whether we have any method to get t...

anusha60 by Kilo Expert
  • 13687 Views
  • 5 replies
  • 2 helpfuls

Resolved! getproperty for catalog client script

I have some catalog client scripts that use Hard coded sys ids of groups to compare Assignment Groups on Tasks . How do I replace them with system properties.

Shiva40 by Kilo Expert
  • 4129 Views
  • 4 replies
  • 4 helpfuls

UI Policy Actions list not visible

Hello,I'm trying to hide a form section when a certain condition is met. I created a UI policy and saved it but the UI policy actions list is not being displayed upon saving. I'm using the latest patch of Helsinki. How can I resolve this issue?Thank ...

Validate date field with business days

Hi All, I have a DATE field and I need to validate it such that it difference between the current date and entered date is 4 BUSINESS days.  Eg. if today is 21st August, earliest selectable date should be 28th August. Any value entered before 28 shou...

Rj27 by Mega Guru
  • 5351 Views
  • 5 replies
  • 8 helpfuls

Change font weight and size on a label variable

Hello, We would like to change the font weight and size of a few label variables in one of our catalog items that is accessible from the Service Portal. I've seen several older posts addressing this topic and I have tried an onLoad script suggested, ...

ddemar by Giga Contributor
  • 5029 Views
  • 6 replies
  • 2 helpfuls