337
Views
4
Comments
Solved
Reactive Web - Dropdown Empty Text Style change

Hello All, 

I am new with OutSystem and I have set up empty text value "Pick One" but I would like to change this in "Bold" but if I choose one of the value in the dropdown, it should come up fine. I was wondering is there a way I can accomplish that? 

Thank you

2021-06-02 20-50-04
Márcio Carvalho
Solution

Yes, you just have to grab the class of the empty text and change the font weight. And if is not the empty text the font-weight is normal.

I will try to do a demo for you.

Here you have one solution! :)

https://marcio-carvalho4.outsystemscloud.com/demodropdown/DropdownCSS?_ts=637568863523245777

You just need to know when the variable a value or not. If it has you give a class to add the style font normal, if don't have value, you give a class to add the style font bold.


I hope that you made it.

Regards,

Márcio C.


demodropdown.oml
2021-05-18 02-27-17
Manish Gupta
Champion

Well done @Marcio Carvalho 

Appreciated ;)

You have explained the solution nicely. 

2022-01-13 08-29-52
Saravanan Santhanam

Hi Raj patel,

It can be done with minute CSS customization. Please find the URL and OML for your problem's reference.

URL : https://saravanan-gamechanger.outsystemscloud.com/TEST/Dropdown?_ts=637569003657566089

Regards,

Saravanan Santhanam.

TESTDROPDOWN18052021.oml
2021-06-02 20-50-04
Márcio Carvalho

Hello! @Raj Patel Any updates, did you find your solution with our answers? If so, please mark the solutions to finish the thread and make other users see this as a solution to their problems. :)

Thanks

Regards,

Márcio 

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