- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2018 12:02 PM
I want to implement onChange client script for changing the color of additional comment field based on selection of checkbox. Please provide me the solution..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 04:47 AM
Hi,
Thank you for your help.
Now it is working with below code.
var c = document.getElementById("activity-stream-comments-textarea");
if (newValue == 'true') {
c.style.backgroundColor = '#FFFFE0';
}
else {
c.style.backgroundColor = '';
}
Thanks,
Dhanashree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 04:28 AM
Hi Lauire,
I tried with the script you have provided but it is not working.
So I tried something like below. It is working for other fields but not for comments field which basically comes from 'task' table and which is journal input field.
if (newValue == 'true') {
var cTypeField = $('tablename.comments');
cTypeField.style.backgroundColor = 'yellow';
}
else {
cTypeField.style.backgroundColor = '';
}
Thanks,
Dhanashree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018 04:47 AM
Hi,
Thank you for your help.
Now it is working with below code.
var c = document.getElementById("activity-stream-comments-textarea");
if (newValue == 'true') {
c.style.backgroundColor = '#FFFFE0';
}
else {
c.style.backgroundColor = '';
}
Thanks,
Dhanashree