The CreatorCon Call for Content is officially open! Get started here.

How to get the selected value from the SelectBox in the catalog

shalini44
Tera Expert

Hello,

We have a requirement where the selected value from the SelectBox Catalog should be displayed in the incident. How can I get the selected value from the SelectBox?

Suggestions, tips would be greatly appreciated.

Thanks,

Shalini

1 ACCEPTED SOLUTION

Deepa Srivastav
Kilo Sage

Is g_form.getValue('variable_name') not working? Write a on change catalog client script of that variable n check.Hit like, Helpful or Correct depending on the impact of the response.



function onChange(control, oldValue, newValue, isLoading) {


    if (isLoading || newValue == '') {


          return;


    }


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




    //Type appropriate comment here, and begin script below


 


}


View solution in original post

7 REPLIES 7

Inactive_Us1474
Giga Guru

Hi Shalini,



You can use g_form object in client script like below:


g_form.getValue('field_name_select_box');



Thanks and Hope it helps.


Deepa Srivastav
Kilo Sage

Is g_form.getValue('variable_name') not working? Write a on change catalog client script of that variable n check.Hit like, Helpful or Correct depending on the impact of the response.



function onChange(control, oldValue, newValue, isLoading) {


    if (isLoading || newValue == '') {


          return;


    }


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




    //Type appropriate comment here, and begin script below


 


}


Yes, the g_form.getValue('variable_name') is not working. I will try the change catalog client script and see if it works.


Thanks!


pls provide screenshot of the variable n ur script for checking further..



Hit like, Helpful or Correct depending on the impact of the response