Catalog client script

Bheemaraju Vagu
Tera Expert

I have one Variable in catalog item

Case 1:

 

   BheemarajuVagu_0-1704808297195.png

If i select Yes 

I need to populate the another variable

BheemarajuVagu_1-1704808410069.png

 

Case 2:

If I select "No"

Another variable should come.

 

Can some one please provide me the Catalog client script ?

 

 

 

11 REPLIES 11

@Ankur Bawiskar 

Please send some reference please

@Bheemaraju Vagu 

Unless you start you won't be able to learn.

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

Ok Thanks ,

I will try

@Ankur Bawiskar  I have created the following Onchange()  client script but not working

BheemarajuVagu_0-1704817089954.png

 

Can you add alert in the if and else if to see if the code is getting in the condition.

Also at the start of the script , right before if add this alert

alert(g_form.getValue('u_is_the_user_still_on_thenetwork'));

 

Yu mentioned this is a catalog, are you sure the name of the variable has u_, the variables font start with u_ by themselves.

-Anurag