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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 at 7:39

Check my similar answer on StackOverflow:

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


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.