top of page

Experiencing challenges with ServiceNow support?

IKC provides professional, reliable assistance that covers gaps not supported by ServiceNow

and without the high costs of traditional services.

 

Starting from just $1,000

Understanding the '-- None --' Value in ServiceNow Select Boxes

Updated: Apr 1

When using ServiceNow, developers and administrators often encounter select boxes with an option labeled '-- None --'. Many users wonder what actual value this option holds internally. This article clarifies the exact meaning of the '-- None --' value, addresses common misconceptions, and offers practical tips for correct implementation and troubleshooting.


What Does '-- None --' Mean in a ServiceNow Select Box?


In ServiceNow, the '-- None --' option represents a blank or empty value. Internally, it is treated as an empty string (''). Contrary to common assumptions, it does not carry any hidden numerical or textual value—it's simply an absence of a selected value.

Understanding that '-- None --' equates to a blank or empty string ('') is crucial when writing client scripts or setting conditions.


Common Misconceptions About '-- None --'


Some users mistakenly assume '-- None --' might correspond to a numerical value, such as '0' or '-1'. However, it consistently translates internally as a blank (''). Misunderstanding this can lead to incorrect logic in your scripts, causing unexpected behaviors or errors.


How to Check and Troubleshoot the '-- None --' Value


Here’s how you can accurately detect if '-- None --' is selected using a client script in ServiceNow:

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }

   // Your custom logic here
}

By using newValue === '', you clearly differentiate the '-- None --' option from other potential selections.


Practical Example


Here's a practical scenario illustrating how you can clear or set a default value based on the selection:

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading) {
      return;
   }

   if (newValue === '') {
      // Clear or reset another field if '-- None --' is selected
      g_form.clearValue('another_field');
   } else {
      // Set a default value if another selection is made
      g_form.setValue('another_field', 'Default Value');
   }
}

Alternative Approaches


If you want to explicitly set a field's default option as '-- None --', you can programmatically add it as follows:

g_form.addOption('field_name', '', '-- None --');

Conclusion and Next Steps


Clearly recognizing that the '-- None --' option in ServiceNow is effectively a blank value ('') makes it easier to handle form conditions, scripting, and data validation.


Next, consider these actions:

  • Regularly test your scripts across various forms to ensure accurate handling of the '-- None --' selection.

  • Refine existing client scripts by explicitly checking for blank values ('').

  • Familiarize yourself with alternative approaches for handling default selections in select boxes.


Applying these insights will simplify your scripting tasks and enhance the overall usability of your ServiceNow implementation.

Experiencing challenges with ServiceNow support?

IKC provides professional, reliable assistance that covers gaps not supported by ServiceNow

and without the high costs of traditional services.

 

Starting from just $1,000

CONTACT

New Zealand HQ

Integrated Knowledge Consulting Office

Level 3, 93 Grafton Road

Auckland

South Korea

Integrated Knowledge Consulting Office

BMY역삼타워 6층

서울특별시 강남구 역삼동 678-10번지

 

info@ikconsulting.com

Thanks for submitting!

  • LinkedIn Social Icon

© Copyright 2025 Integrated Knowledge Consulting. All rights reserved.

bottom of page