Based on checkbox field value, I need to set variables value true or false?

varma2
Mega Sage

Hi All,

We have software model published catalog items and all the software models stored in ''cmdb_software_product_model'' table.

In this table we have two check box 1 is pre installation 2nd is post installation. please refer the below screenshot of both fields,

find_real_file.png

 

We have catlog items in these models and we have a two variables same as pre installation and post installation.

If above fields is checked in software model  it will need to show below variable as a TRUE and if field not checked it will show false in below variables.

find_real_file.png

Please suggest me on this.

 

Thanks,

Varma 

1 ACCEPTED SOLUTION

@varma

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark my response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

19 REPLIES 19

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Are you having any variable which refers to software model table?

If yes then based on the change of that variable you need to set those checkboxes

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

Yes i have a single line text variable called build_version which referring software model table.

 

Please suggest,

Thanks,

Varma

Hi Varma,

So build_version is reference variable which refers to software model table

Then use onChange client script and GildeAjax for this

refer below link for example

Client Script GlideAjax Example

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 

Build_version is singleLine text variable not reference.

We fetching the value from script include.

 

Thanks,

Varma