Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to change card background colors based on condition in apex?

I want to changes my card background color based on condition i want when my status = “Y” its background color green and when status = “N” the background color red else no background color none.

i use this code in SQL Query:

CASE
WHEN ACT_FLG = 'Y' THEN 'background-color: #ff4d4d;'
WHEN ACT_FLG = 'N' THEN 'background-color: #ffcc00;'
ELSE 'background-color: #4caf50;'
END AS data_status

Anyone help me to solve my error

This post has been answered by Abdul Rehman Mirza on May 21 2025
Jump to Answer
Comments
Post Details
Added on Dec 19 2024
3 comments
556 views