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
2022-11-12 11-28-30
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.
2018-05-31 18-44-19
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.HCStructure.HCIndicator = "Y","True","False")
2018-05-31 18-44-19
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 
2022-11-12 11-28-30
Gonçalo Martins
Staff
Nice to know that it helps and that you could easily acheive it ;)

Kind Regards,
Gonçalo Martins

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