We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Unable to set value of checkbox using Catalog Client Script

hetaldoctor
Kilo Expert

Hi everyone

I am facing 2 issues

1. I am trying to set value of a checkbox using catalogclient script. But it is not working. I tried below options

g_form.setValue('x', true);

g_form.setValue('x', 'true');

g_form.setValue('x', 1);

g_form.setValue('x', '1');

2. I am setting checkbox to mandatory in a catalog ui policy. But that is also not working

Any ideas on this front will be welcome

 

Regards

Hetal

5 REPLIES 5

Hi Jotiram

What release of ServiceNow you are using

We are on Kingston

Regards

Hetal