You need to sign in to do that
Don't have an account?
Andrew North
Display an image within a Visualforce Section dependent on Opportunity Record Type.
Hi
We have a visualforce section on all of our Opportortunity page layouts.
This section shows a particular image depending on what has been selected within the stage field.
Below is a sample of the code that we have in place.
Is it possible to split it up so that depending on which Opportunity Record Type is selected different images can be displayed against each stage?
For example if record type = X and the stage is Closed Won then show image A
If record type = Y and the Stage is closed Won then show image B
Thank you
We have a visualforce section on all of our Opportortunity page layouts.
This section shows a particular image depending on what has been selected within the stage field.
Below is a sample of the code that we have in place.
Is it possible to split it up so that depending on which Opportunity Record Type is selected different images can be displayed against each stage?
For example if record type = X and the stage is Closed Won then show image A
If record type = Y and the Stage is closed Won then show image B
Thank you
<apex:page standardController="Opportunity" showHeader="true" sidebar="true"> <div align="center"> ></apex:image> <apex:image id="won" value="{!$Resource.stageWon}" height="60" rendered="{!Opportunity.stageName = 'Closed Won'}" ></apex:image> <apex:image id="lost" value="{!$Resource.stageLost}" height="60" rendered="{!Opportunity.stageName = 'Closed Lost'}" </div> </apex:page>
Please use my tested code :-
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
Use <apex:outputpanel> to do that
E.g.:
Hope this helps
Please use my tested code :-
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
That worked perfectly Mukesh!
Thank you so much!