46
Views
7
Comments
Change color of one character only in a single expression
Question

Hello!
Have you tried changing color of only one character in a single expression? For example right here on the image below,  i need to change the color of the asterisk only to red and others on regular color black. Thanks in advance!

2025-04-15 10-28-35
Dhanasingh Dennison

Hi @RD. 

Kindly refer the discussions link below, it might help:

https://www.outsystems.com/forums/discussion/92320/conditionally-change-color-of-link-or-expression/

Thanks,

Dhanasingh Dennison.

2021-08-12 05-19-40
Shubham Janbandhu

Hi RD,

Using Expression widget could not change the color of particular string. But I will suggest to use (Expression + Text) and create separate CSS class which you can give to Text widget style.

Example:

 

Regards,

Shubham

2022-12-30 07-28-09
Navneet Garg

You can not use html in the expression due to html sanitization expression will convert it in normal html. So you have to separate it.

2022-01-05 09-37-24
Faiz Khan

Hi @RD.,

Here is solution, this will help you to easily inject HTML, its not the most optimal solution, but you can give it a try.

Regards,
Faiz

TestAsterisk.oml
UserImage.jpg
RD.

Thanks for your response guys, will check it and give an update here.

2026-02-16 05-51-10
Sahana K

Hi,
please find the attached oml,
thanks,
sahana

expression.oml
2016-04-22 00-29-45
Nuno Reis
 
MVP

There was a discussion just one week ago on the same topic.

https://www.outsystems.com/forums/discussion/101822/expression-with-styling/

TLDR: You can use multiple expressions, or JavaScript. Never plain CSS.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.