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
Sara Massey 10Sara Massey 10 

When trying to define when I would like a field to be rendered on a Visualforce page, I am not sure if this is the correct s

syntax or not.  I have tried various times to get the results I need, but it seems to have some type of syntax error.  any suggestions? 

rendered="{!IF(!le.Line_Item_Complete__c,true,false)}"
Best Answer chosen by Sara Massey 10
SwethaSwetha (Salesforce Developers) 
HI Sara,
Can you try and see if this meets your requirement
<apex:page standardController="Account" rendered="{!if(Account.Line_Item_Complete__c,true,false)}" >
   
    <!-- Your VF page Content -->
    
</apex:page>
If not, I am happy to understand the business logic in words so I can frame it as a condition in VF page. Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
HI Sara,
Can you try and see if this meets your requirement
<apex:page standardController="Account" rendered="{!if(Account.Line_Item_Complete__c,true,false)}" >
   
    <!-- Your VF page Content -->
    
</apex:page>
If not, I am happy to understand the business logic in words so I can frame it as a condition in VF page. Thank you
This was selected as the best answer
Sara Massey 10Sara Massey 10
Yes! thank you - this did the trick : )