Does anyone have any idea?
The button is simply a round dot. Don't think you can set the colour of it, when I tried with web inspector, didn't work.
Or did you wan't to set the colour of the background colour of each colour label?
yes, I meant the colour of the background colour of each colour label
I tried in the post element of the radio buttons
$x("P19_DEROULEMENT").style.backgroundColor = "yellow";
$x("P19_DEROULEMENT").style.backgroundColor = "red";
$x("P19_DEROULEMENT").style.backgroundColor = "green";
but no success
To do that, you use JQuery as below.
$("label[for='P1_RADIO_0']").attr("style", "background-color:red;"); $("label[for='P1_RADIO_1']").attr("style", "background-color:green;"); $("label[for='P1_RADIO_2']").attr("style", "background-color:yellow;");
For radio you will need to Define LOV. For every radio button consist of a <input> element, and an associated <label> element.
The ID of each <input> element goes like:
And the labels has a "for" attribute to reference the sibling <input> element, so the Jquery would like above.
Run it on page load with a Dynamic action. Here is a working example:
that works great, thanks
Any way the color be dynamic, based on the color from the LOV?
You mean you want to set background of a region or something based on what's selected in LOV?
If yes, then create a Dynamic Action which will set the background colour based on what's selected in that item. You can use the same Jquery selector
$("#<<static id of the region>>").attr("style", "background-color:red;");