Want to add red color bar to Additional comments field and activity on Work Order form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hello everyone,
I have a requirement to add red color bar to field level and activity level. So i achieved field level configuration by creating UI Macro and UI Formatter. Please see the below screenshots for your reference.
But i can't able to add color to activity level
I have used one macro code that is mentioned below, If i use this it is overriding all activity bars to red, but i want color code for only Additional comments activity . see the below screenshot.
Macro Code:
<jelly xmlns:j="jelly:core">
<style>
/* Input field styling */
textarea[data-stream-text-input="comments"] {
box-shadow: inset 4px 0 0 0 red !important;
padding-left: 12px !important;
box-sizing: border-box !important;
}
/* Activity entries - force red color on all accent bars */
.sn-card-component_accent-bar {
border-left-color: red !important;
background: linear-gradient(to right, red 4px, transparent 4px) !important;
}
</style>
</jelly>
Can anyone help me with the solution top add red color bar only to Additional Comment field on activity level?
Thanks in advance!