Dhtmlxcolorpicker in a form

Hi,

I ran into something strange.

If I load a form via json that has a colorpicker on it that has the color set via value in the json string and then try to use the setColor function to change the value, it updates what is in the control, but not what displays. How would I get it to update the display?

Cheers,
Alex

Hi
If you mean input’s value - you need to use the next:

cp = myForm.getColorPicker(“Color”);
col = “#ccff00”;
cp.setColor(col);
myForm.setItemValue(“Color”, col);