How to make particular text in a column under a field appear in red colour?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 07:40 AM
Hi All,
We have a query regarding a page content visibility in service portal. We have a field "More Info" under which we have few columns with text length max 70. Now we want to make 5 texts out of 10 text under this field "More Info" to be visible in red colour. How to achieve this? is this done via css? If yes or no kindly share your suggestions on how to achieve this? Attached is the snapshot.
Thanks in advance for the assistance.
Kind Regards,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 08:20 AM
You can definitely achieve this with CSS. It that an OOTB widget or a custom one? And what is the logic for displaying certain lines in red? What attribute or property is this logic based on?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 12:09 AM
Hi @Slava Savitsky, it's a custom widget. The logic here is we want to highlight the emergency help text to differ from other texts in service portal. This is a string field which we want to display to end-users. We have total 20+ texts under the column "More Info" out of which we have 5 texts "Emergency line for P1 & P2 during out of office times". Only these 5 texts we want to display in red colour.
Kindly suggest the css for this to be achieved. We don't have css skillset in our team, could you please suggest how to achieve this?
Thanks & regards,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 08:54 AM
How do you expect me to know what CSS rules to apply without knowing the structure of your custom widget?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 10:11 PM
Please find the snapshot of portal page attached.
Under the field "More Info", you can see the text "Emergency line for P1 & P2 during out of office times". Only this particular text which appears for the few countries should be shown in red colour.
Please find the other snapshot attached which shows how the text should be visible.
This is what we are trying to achieve.
BR,
Raj