Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I have the code like below. I need to add user's country checking code also with the Rendered section in below. Like if country code is = IN then and account is null or blank then only the code will work. Pls suggest.

  <apex:page standardController="Event_Cost_c" rendered="{!ISBLANK(Event_Cost__c.Account__c)}">
share|improve this question
    
Why don't you call a method like rendered="{!myMethod} that do all the job you want? –  SF_user Aug 11 at 7:39

1 Answer 1

Check my similar answer on StackOverflow: http://stackoverflow.com/questions/20671252/visualforce-if-statement-need-to-know-syntax-for-or

In your case something like this probably would work:

rendered="{!Event_Cost__c.Country_Code__c = 'IN' && ISBLANK(Event_Cost__c.Account__c)}"

It's not too different from the syntax of normal formulas.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.