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
Mike ElhardMike Elhard 

rendered="false"/> Error

I attempted to add a field to this section of code but now I get the rendered="false"/> Error

Here is the original code;
<apex:pageBlockSection collapsible="false">
                        <apex:inputField value="{!oHoldMachine.Do_Not_Ship__c}" id="chkDoNotShip" onChange="jsRerenderDisplay();"/>
                        <apex:inputField value="{!oPRODUCT.leaseProduct.Requested_Delivery_Date__c}"
                                        label="{!$Label.Earliest_Requested_Delivery_Date}"
                                        rendered="{!NOT(oHoldMachine.Do_Not_Ship__c)}"/>
                        <apex:inputField value="{!oHoldMachine.Expedite_Delivery__c}" 
                                        rendered="{!NOT(oHoldMachine.Do_Not_Ship__c)}" 
                                        onChange="jsRerenderDisplay();"/>
                        <apex:pageBlockSectionItem />
                        <apex:inputField value="{!oHoldMachine.Expedited_Delivery_Date__c}" 
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>
                        <apex:inputField value="{!oHoldMachine.Expedited_Delivery_Hours__c}" 
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>
                    </apex:pageBlockSection>

                </apex:outputPanel>



Here is my change;
<apex:pageBlockSection collapsible="false">
                        <apex:inputField value="{!oHoldMachine.Do_Not_Ship__c}" id="chkDoNotShip" onChange="jsRerenderDisplay();"/>
                        <apex:pageBlockSectionItem />
                        <apex:inputField value="{!oPRODUCT.leaseProduct.Requested_Delivery_Date__c}"
                                        label="{!$Label.Requested_Delivery_Date}"
                                        rendered="{!NOT(oHoldMachine.Do_Not_Ship__c)}"/>
                        <apex:inputField value="{!oPRODUCT.leaseProduct.Today_Plus_Lead_Time__c}" 
                                        rendered="{!NOT(oHoldMachine.Do_Not_Ship__c)}"/>
                        <apex:inputField value="{!oHoldMachine.Expedite_Delivery__c}" 
                                        rendered="{!NOT(oHoldMachine.Do_Not_Ship__c)}" 
                                        onChange="jsRerenderDisplay();"/>
                        <apex:pageBlockSectionItem />
                        <apex:inputField value="{!oHoldMachine.Expedite_Reasons__c}"/>
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>
						<apex:inputField value="{!oHoldMachine.Expedited_Delivery_Date__c}" 
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>
                        <apex:inputField value="{!oHoldMachine.Expedited_Delivery_Hours__c}" 
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>
                    </apex:pageBlockSection>

                </apex:outputPanel>


I added 
<apex:inputField value="{!oHoldMachine.Expedite_Reasons__c}"/>
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>

Any help would be appreciated
Best Answer chosen by Mike Elhard
mritzimritzi
There is syntax error in the line that you added:

use this line:
<apex:inputField value="{!oHoldMachine.Expedite_Reasons__c}" 
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>
It should fix the issue.

Please mark this as Best Answer, if this solves your problem.
 

All Answers

mritzimritzi
There is syntax error in the line that you added:

use this line:
<apex:inputField value="{!oHoldMachine.Expedite_Reasons__c}" 
                                        rendered="{!AND(oHoldMachine.Expedite_Delivery__c
                                                    , NOT(oHoldMachine.Do_Not_Ship__c))}"/>
It should fix the issue.

Please mark this as Best Answer, if this solves your problem.
 
This was selected as the best answer
Mike ElhardMike Elhard
That worked. Thank you!