Notifications

642 views

Description

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.

 

Workaround

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.

setTimeout(function(){
g_form.setReadOnly('checkbox_variable', true);
});

Related Problem: PRB1235553

Seen In

There is no data to report.

Fixed In

London

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-07-06 04:21:19
Published:2017-11-03