I’m trying to load a color value (in hex, e.g. “abcdef”, without the “#”) from the database.
myfrm.load(“loadValues.php”); loads the values into “myfrm”. In “loadValues.php” I use the ->renderSQL(); method to load and render the data into my form.
Now, two issues arise by doing this.
1st - The colorpicker won’t be filled. I tried to fill the colorpicker in an empty form by using:
frm.getColorPicker(“mycolorpicker”).setColor("#abcdef"); - this didn’t set the value in the colorpicker.
Those errors are not intertwined (because the order of the objects does matter, everything behind “null” is not rendered, everything before “null” is actually a-ok).
How can I solve these issues?
A quick recap: