Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 10:10 AM
Hello Community,
How to change the background color of the field if caller is not empty.
Thanks,
Nagesh
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting and Coding
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 10:14 AM
Hello Nagesh,
You can use field styles to change color of the field.
Refer to this link for more information.
Also, you can write onload client script
function onLoad() {
//Type appropriate comment here, and begin script below
var element = g_form.getElement('number');
element.style.backgroundColor = "red";
}
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 10:14 AM
Hello Nagesh,
You can use field styles to change color of the field.
Refer to this link for more information.
Also, you can write onload client script
function onLoad() {
//Type appropriate comment here, and begin script below
var element = g_form.getElement('number');
element.style.backgroundColor = "red";
}