function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lisa SchutterLisa Schutter 

Rerender Output panel based on recordtype

Hi All, In my visualforce component I try to rerender an output panel based on opportunity recordtypes. But is not working. I tried using the Record type ID but that also doesn't seem to work. 

Anybody any ideas?
Best Answer chosen by Lisa Schutter
Lisa SchutterLisa Schutter
 <apex:outputPanel rendered="{!opp.RecordType.Name == 'Opportunity (Person)'}">
               <p class="padded-text">
                <strong style="text-transform:uppercase">{!opp.Account.Works_at__pc}</strong><br/>
                {!$Label.QB_Ad_attn} mevrouw Marre Huijsman<br/>
                {!opp.Account.PersonMailingStreet} <br/> 
                {!opp.Account.PersonMailingPostalcode} {!opp.Account.PersonMailingCity}<br/>
                {!opp.Account.PersonEmail}
                </p>
                </apex:outputPanel>