


I wish to set red color with JavaScript for Check Box.
How Can I do?
Views
Replies
Sign in to like this content
Total Likes
The attached uses a button click event to toggle the colour of the clickable area in a checkbox.
// form1.page1.subform1.btn::click - (JavaScript, client)
if (form1.page1.subform1.resolveNode("btn.caption.value.#text").value == "Make Red") {
form1.page1.subform1.resolveNode("cb.ui.#checkButton.border.fill.color").value = "255,0,0";
form1.page1.subform1.resolveNode("btn.caption.value.#text").value = "Reset";
}
else {
form1.page1.subform1.resolveNode("cb.ui.#checkButton.border.fill.color").value = "255,255,255";
form1.page1.subform1.resolveNode("btn.caption.value.#text").value = "Make Red";
}
Steve
Views
Replies
Total Likes
The attached uses a button click event to toggle the colour of the clickable area in a checkbox.
// form1.page1.subform1.btn::click - (JavaScript, client)
if (form1.page1.subform1.resolveNode("btn.caption.value.#text").value == "Make Red") {
form1.page1.subform1.resolveNode("cb.ui.#checkButton.border.fill.color").value = "255,0,0";
form1.page1.subform1.resolveNode("btn.caption.value.#text").value = "Reset";
}
else {
form1.page1.subform1.resolveNode("cb.ui.#checkButton.border.fill.color").value = "255,255,255";
form1.page1.subform1.resolveNode("btn.caption.value.#text").value = "Make Red";
}
Steve
Views
Replies
Total Likes
Hi Steve,
Thanks a lot.
Your attacment has helped me much.
Thanks me.
Views
Replies
Sign in to like this content
Total Likes