50 views

Symptoms


UI Policy lets you show checkbox variable which is being hidden by the label variable

Release


Jakarta and below

Environment


Service Catalog

Cause


Showing a checkbox variable that is hidden by a label variable using a UI Policy is not supported behavior

Resolution


Instead use a catalog client script which sets the label variable to visible on every condition check, see example below.

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }
if (g_form.getValue("name_of_variable_which_contains_choices") == "choice_value"){
g_form.setDisplay("var1",true);
g_form.setDisplay("var2",false);
g_form.setDisplay("LabelVar",true);
}
else if (g_form.getValue("name_of_variable_which_contains_choices") == "choice_value"){ 
g_form.setDisplay("var1",false);
g_form.setDisplay("var2",true);
g_form.setDisplay("LabelVar",true);
}
else {
g_form.setDisplay("LabelVar",false);
}
  //Type appropriate comment here, and begin script below
}

 

Article Information

Last Updated:2018-06-13 09:27:16
Published:2018-06-01