You need to sign in to do that
Don't have an account?
multiple Condition in redered attribut (Example OR)
HI ,
I have a task ,when Account Syage move to Suspect ,
It Should open the Suspect Section,Its working when i give one condition,but once suspect information filled and
when i move the stage to prospect unable to View my Suspect Information,
So what i am doing means i am giveing one more information when Suspect Information not equal to null it should show the Suspect Section,
But If i give two condition its Redered attribute is not working
Any help
<apex:page standardController="Account" >
<apex:sectionHeader title="Account Edit"/>
<apex:form >
<apex:pageBlock title="EditAccount">
<apex:pageMessages />
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:actionRegion >
<apex:pageBlockSection title="DatabaseInformation" collapsible="True" >
<apex:inputField value="{!account.owner.name}"/>
<apex:inputField value="{!account.Phone}"/>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Account Stage"/>
<apex:outputPanel >
<apex:inputField value="{!account.Account_Stages__c}">
<apex:actionSupport event="onchange" reRender="out" status="mystatus"/>
</apex:inputField>
<apex:actionStatus startText="applying value..." id="mystatus"/>
</apex:outputPanel>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:pageBlockSection title="Additional Information" >
<apex:inputField value="{!account.Type}"/>
<apex:inputField value="{!account.Industry_Category__c}"/>
<apex:inputField value="{!account.AnnualRevenue}"/>
</apex:pageBlockSection>
</apex:actionRegion>
<apex:outputPanel id="out" >
<apex:pageBlockSection title="Suspect Information" rendered="{(!account.Account_Stages__c =='Suspect') ||(!Account.phone)!=NULL}" >
<apex:inputField value="{!account.phone}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Prospect Information" rendered="{!account.Account_Stages__c =='Prospect'}" >
<apex:inputField value="{!account.phone}"/>
</apex:pageBlockSection>
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks,
jaba
You are making a syntax error
So it should be something like
All Answers
You are making a syntax error
So it should be something like