Unable to set values for variables of type Select or Yes/No through catalog client script on RITM and Task page.

Steps to Reproduce


  1. Import the attached item, variable, and client scripts.

  2. Order Test Yes No variable. Set Variable to Yes.

    The RITM will be created.

    The client script should set the variable to No when the RITM is opened. However, the variable "test_var" is not being set to No and is still Yes.


Wrap the setValue call in a timeout function.

setTimeout(function() {
g_form.setValue("test_var", "No");

Related Problem: PRB1240229

Seen In

There is no data to report.

Intended Fix Version


Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-11-28 15:03:52