194
Views
6
Comments
Edit Prompt text color
Application Type
Traditional Web

Hello,

I would like to know how I could edit the color of the input prompt. 

I intended to put the asterisk in red.


OutSystems 11

Thanks

2023-09-13 13-47-19
Nuno Magalhães

Hello,

Perhaps this article will help. Although if you want just the asterisk you might have to do some Javascript coding.

https://www.w3schools.com/howto/howto_css_placeholder.asp


2019-06-15 21-39-22
Afonso Carvalho
 
MVP

Hello Henrique,

You can use the placeholder pseudoclass to change the color of the placeholder text in most modern browsers, but I don't think there's an easy way to change only a part of the text.

The available solutions to solve this look a little clunky to me, so I'd consider if this is something that you must really have in your application - the associated effort to design and maintain something like this for every input in your page is something that should be considered.

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hi @Henrique Querido,

Try this below format to change the placeholder (prompt) color

.ClassName::placeholder
{
    color: #000000;
}

Replace the classname  and the color code with your respective values.

Hope it helps,
Nandhakumar S. 

2024-10-12 12-11-20
Kerollos Adel
Champion

i think you can change placeholder but not part of it as i try in outsystems


EditPrompttextcolor.oml
2023-09-04 14-05-07
Henrique Querido

Thank you all for the responses.

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hi @Henrique Querido,

Please mark the response as a solution, If it helps you achieve your expectations.

Cheers,
Nandha.

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