Logic HELP!!

Joe W. shared this question 18 days ago
Answered

Would someone be kind enough to help me with some logic.

If *customfield-289757* is empty, I don't want the image to show. I've tried different variations below with no luck. I appreciate any help and/or advise!


<td style="border-bottom: 1px solid rgb(0, 0, 0); font-family: Arial; font-size: 10pt; text-align: left; width: 48.303%;" valign="bottom">

~~empty(*customfield-289757*)~ ~

<img src=""> ~~

</td>

Comments (3)

photo
1

I could be wrong on this but I think that you're overriding the hierarchy when you have display:block inside the style of the img. So you could try removing that or adding your code in the style at the very end of the string. But it would have to be more like ~~empty(variable)~display:none~~~;


Additionally, the img link is a 404. So it may be that there's just no image to show.

photo
1

Thanks Chad but that didn't help. The image is good on my end? I'll keep playing.

photo
1

I'm trying to remember, I think is was Paid or something on your invoices?? I'm think its the same concept. What was the format for that?

photo
2

I usually put that same code in the style section of an element as follows:

<div class="watermark" style="~~*balance_due*==0.00~ ~display:none~~;">

photo
1

Thank you!

photo
1

Were you still needing assistance or was Chad able to answer your question?

photo
1

I finally Figured it out. Thank you!

photo
Leave a Comment
 
Attach a file
Access denied