On a catalog form we have 3 select box variables(A,B,C) for each variable has 300 question choices , So when we select 'A' need to display some 'B' dropdown values and based on B need to populate 'C' values. So my question is how to do it dynamicall

Manureddy1
Tera Contributor

find_real_file.png

5 REPLIES 5

Service_RNow
Mega Sage

HI,

You would require onchange client script on the select item variable; sample script below, just adjust or tweat as per your values:

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading) {
      return;
   }

g_form.clearOptions('request_type');

if(newValue == 'Card Swipe Unit'){

g_form.addOption('request_type', choicevalue, choiceLabel);
g_form.addOption('request_type', choicevalue, choiceLabel);

}

}

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

RS