- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2025 02:10 AM
Hello Everyone reading this..
I wants to add a danger icon/image in Incident record inside the 'Number' field(just right to numbers), whenever the incident state will be major incident accepted so that it can get differ from the P1/any other incidents. What's the best way to acheive this. Please make sure I wants that inside the field only neither on left nor on right.
Thanks for your help in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2025 04:16 AM
Hi @raishiveshk,
can you please provide more details?
Are we talking about form or list view? Each requires a bit different solution.
List view > Field Styles
- you can get inspiration from this:
Looks like this:
For the form, it will require an onLoad client script
- you can get inspiration from this
function onLoad() {
setTimeout(function() {
var fieldName = 'mood_score_tw';
var mstw = g_form.getValue(fieldName);
var control = g_form.getControl(fieldName);
control.style.color = 'black';
control.style.fontWeight = 'bold';
var bgColor = '';
if (mstw === 'Green') {
bgColor = '#b6fcb6';
} else if (mstw === 'Yellow') {
bgColor = '#fff9b1';
} else if (mstw === 'Red') {
bgColor = '#fcb6b6';
}
control.style.backgroundColor = bgColor;
if (control.parentNode) {
control.parentNode.style.backgroundColor = bgColor;
}
}, 300);
}
and it looks like this:
So, find the danger icon or select existing one in the system and use it in the Field styles for list view, or onLoad CS in form view. Both can have specific conditions using JavaScript.
Let me know if this helps you and feel free to discuss more details,
This reply is 100 % GlideFather and 0 % AI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2025 04:16 AM
Hi @raishiveshk,
can you please provide more details?
Are we talking about form or list view? Each requires a bit different solution.
List view > Field Styles
- you can get inspiration from this:
Looks like this:
For the form, it will require an onLoad client script
- you can get inspiration from this
function onLoad() {
setTimeout(function() {
var fieldName = 'mood_score_tw';
var mstw = g_form.getValue(fieldName);
var control = g_form.getControl(fieldName);
control.style.color = 'black';
control.style.fontWeight = 'bold';
var bgColor = '';
if (mstw === 'Green') {
bgColor = '#b6fcb6';
} else if (mstw === 'Yellow') {
bgColor = '#fff9b1';
} else if (mstw === 'Red') {
bgColor = '#fcb6b6';
}
control.style.backgroundColor = bgColor;
if (control.parentNode) {
control.parentNode.style.backgroundColor = bgColor;
}
}, 300);
}
and it looks like this:
So, find the danger icon or select existing one in the system and use it in the Field styles for list view, or onLoad CS in form view. Both can have specific conditions using JavaScript.
Let me know if this helps you and feel free to discuss more details,
This reply is 100 % GlideFather and 0 % AI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2025 02:19 AM
Hi @raishiveshk,
have you had chance reviewing my message above? To comply with the Community's Code of Conduct, it'd be nice to hear some feedback from you. It's a result of efforts taken in my free time...
Thanks
This reply is 100 % GlideFather and 0 % AI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2025 02:28 AM
Hello @GlideFather
Actually, it's been sorted by myself before your reply with some research over the Internet. But still the solution I had used was somehow same as you had written so I have marked your response helpful and accepted as solution. Thanks for your efforts and time.
