You need to sign in to do that
Don't have an account?

Open quote is expected for attribute "rendered" associated with an element type "apex:pageblockSection"
Hi,
I am trying to build a VF page that renders a section but only if a mulitselect picklist on a related object has a certain value . I want to say - display if related __r.cf_c CONTAINS cruise
I am getting back the following error
line 22, column 66: Open quote is expected for attribute "rendered" associated with an element type "apex:pageblockSection"
Error: Open quote is expected for attribute "rendered" associated with an element type "apex:pageblockSection".
Here is what I have
<apex:page standardController="order__c">
<apex:form >
<apex:pageBlock title="Cabin Booked">
<apex:pageblockButtons >
<apex:commandLink value="Save" action="{!save}" target="_parent" styleClass="btn">
</apex:commandlink>
<apex:commandLink value="Cancel" action="{!cancel}" target="_parent" styleClass="btn">
</apex:commandlink>
</apex:pageblockButtons>
<apex:pageblockSection title="Cabins Booking page" rendered=="{!CONTAINS([order__c].Deal__r.deal_type__c,'cruise')}">
<apex:inputField value="{!order__c.Cruise_Company__c}"/>
<apex:inputField value="{!order__c.INITIAL__c}"/>
<apex:inputField value="{!order__c.CABIN_DATE__c}"/>
<apex:inputField value="{!order__c.Cabin_Number__c}"/>
<apex:inputField value="{!order__c.Ship_Name__c}"/>
<apex:inputField value="{!order__c.Ship_Sale_Date__c}"/>
<apex:inputField value="{!order__c.Cabin_Price__c}"/>
<apex:inputField value="{!order__c.CABIN_DATE__c}"/>
<apex:outputField value="{!order__c.Cabin_Paid__c}"/>
<apex:outputField id="derek" value="{!order__c.Status_Output_Field__c}" rendered="{!IF(order__c.Booking_Validation__c ='Travelled' ,true,false)}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I am trying to build a VF page that renders a section but only if a mulitselect picklist on a related object has a certain value . I want to say - display if related __r.cf_c CONTAINS cruise
I am getting back the following error
line 22, column 66: Open quote is expected for attribute "rendered" associated with an element type "apex:pageblockSection"
Error: Open quote is expected for attribute "rendered" associated with an element type "apex:pageblockSection".
Here is what I have
<apex:page standardController="order__c">
<apex:form >
<apex:pageBlock title="Cabin Booked">
<apex:pageblockButtons >
<apex:commandLink value="Save" action="{!save}" target="_parent" styleClass="btn">
</apex:commandlink>
<apex:commandLink value="Cancel" action="{!cancel}" target="_parent" styleClass="btn">
</apex:commandlink>
</apex:pageblockButtons>
<apex:pageblockSection title="Cabins Booking page" rendered=="{!CONTAINS([order__c].Deal__r.deal_type__c,'cruise')}">
<apex:inputField value="{!order__c.Cruise_Company__c}"/>
<apex:inputField value="{!order__c.INITIAL__c}"/>
<apex:inputField value="{!order__c.CABIN_DATE__c}"/>
<apex:inputField value="{!order__c.Cabin_Number__c}"/>
<apex:inputField value="{!order__c.Ship_Name__c}"/>
<apex:inputField value="{!order__c.Ship_Sale_Date__c}"/>
<apex:inputField value="{!order__c.Cabin_Price__c}"/>
<apex:inputField value="{!order__c.CABIN_DATE__c}"/>
<apex:outputField value="{!order__c.Cabin_Paid__c}"/>
<apex:outputField id="derek" value="{!order__c.Status_Output_Field__c}" rendered="{!IF(order__c.Booking_Validation__c ='Travelled' ,true,false)}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
In below line
rendered=="{!CONTAINS([order__c].Deal__r.deal_type__c,'cruise')
You are using deal object deal type. here it will not return value I think.
Thanks
Varaprasad