Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Ravi Vakkalanka
96
Views
4
Comments
How to display a image in the web page based on a if condition
Question
i need to display an image based on a if condition :
if true display one image else display another image.
Pls let me know.
Thanks
Ravi
Gonçalo Martins
Staff
Hi Ravi,
To do that you can put an If with an image widget in both sides of it, according to the condition you need.
It's just an example, but is the fastest ;)
Kind Regards,
Gonçalo M.
Ravi Vakkalanka
Thanks a lot for your quick reply. But I did not understand how to acheive it:
I have following condtion in one of the table record column.
If
(
TableRecords1
.
List
.
Current
.
HealthCheckStructure
.
HealthIndicator
=
"
Y
"
,
"
True
"
,
"
False
"
)
Now if the indicator is "Y" I need to show one image instead of text - "True" else i need to show another image.
Pls let me know.
Thanks
Ravi
If
(
TableRecords1
.
List
.
Current
.HC
Structure
.
HCIndicator
=
"
Y
"
,
"
True
"
,
"
False
"
)
Ravi Vakkalanka
I resolved this issue. First I placed the image widget in the Table Records Column and right clicked on the image widget and selected "Enclose in if" and then I added the condition to display that image.
Thanks Gancalo
Gonçalo Martins
Staff
Nice to know that it helps and that you could easily
acheive it ;)
Kind Regards,
Gonçalo Martins
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...