+ Start a Discussion
3C3C 

Help with Visualforce Rendered Attribute

I'm trying to conditionally render a section if its record type is not at risk and it's not for changing an asset. It doesn't show up at all regardless of record type. Am I just organizing it wrong?

<apex:pageBlockSectionItem rendered="{!NOT(isChangeAsset) && case.RecordType.Name!='At Risk'}" >
PrasanntaPrasannta (Salesforce Developers) 
Hi,

Please refer to this link to know how to conditionally rerender the page component-

http://help.salesforce.com/apex/HTViewSolution?id=000003854&language=en_US

Hope it helps. Kindly mark it as best answer if it helps.

praveen murugesanpraveen murugesan
Hi,

Try this,

<apex:pageBlockSectionItem rendered="{!AND(NOT(isChangeAsset) , case.RecordType.Name!='At Risk')}" >

Mark this as solution if you got a solution.

Thanks,

Praveen Murugesan
Developer.mikie.Apex.StudentDeveloper.mikie.Apex.Student
Hi,

Try this,

<apex:pageBlockSectionItem rendered="{!AND(isChangeAsset =='False' && case.RecordType.Name!='At Risk')}">

or

rendered="{!AND(NOT(isChangeAsset)) && case.RecordType.Name!='At Risk')}"

or of course

rendered="{!AND((isChangeAsset =='False'), (case.RecordType.Name!='At Risk'))}">

Mark this as solution if you got a solution.

Thanks,
Mikie