You need to sign in to do that
Don't have an account?
Ashish Agrawal 4
Need to display a images(logo) based on if condition[Conditional images].
Hello Developers,
Developement about display conditional images on apex:image(display only one images if condition are true).
i have tried using apex:image components and error comes:
Error: using value attribute in apex: image both condition(true or false) broken images(no images) are display.
And, using rendered attribute in apex: image no images are display.
so how to overcome this. need to display a images(logo) based on if condition.
<apex:page standardController="Account" >
<apex:form >
<apex:pageBlock title="Conditional image page">
<apex:pageBlockSection title="Image Section">
<apex:image value="{if(account.Rating =='Hot',$Resource.image1,'')}" width="100" height="100"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks& Regards
Ashish Agrawal
Developement about display conditional images on apex:image(display only one images if condition are true).
i have tried using apex:image components and error comes:
Error: using value attribute in apex: image both condition(true or false) broken images(no images) are display.
And, using rendered attribute in apex: image no images are display.
so how to overcome this. need to display a images(logo) based on if condition.
<apex:page standardController="Account" >
<apex:form >
<apex:pageBlock title="Conditional image page">
<apex:pageBlockSection title="Image Section">
<apex:image value="{if(account.Rating =='Hot',$Resource.image1,'')}" width="100" height="100"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks& Regards
Ashish Agrawal
You can Try like this.
All Answers
You can Try like this.
Try this code
how to reduced the size between two images.