If a Checkbox variable on a Catalog Item is set to readonly by way of a Catalog Client Script as follows:

g_form.setReadOnly('checkbox_variable', true);

it is successfully made readonly but the check in the checkbox does not appear.

This has been introduced in Jakarta as it works fine ('tick' is visible) in Istanbul

Steps to Reproduce


  1. Create a Catalog Item.

    For more information, see the product documentation topic Create a catalog item.

  2. Add a Checkbox variable to it.

    For more information, see the product documentation topic Create a service catalog variable.

  3. Set a Catalog Client Script on the onChange of the Checkbox variable that makes it readonly when clicked.
    g_form.setReadOnly('checkbox_variable', true);

    The checkbox is made readonly but the check is not visible in the checkbox.



Although setting the control readonly on an action on itself is not standard interface behavior, if you need this behavior, replace g_form.setReadOnly('checkbox_variable', true); with the following code.

g_form.setReadOnly('checkbox_variable', true);

Related Problem: PRB1235553

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:2018-03-20 11:37:57