+ Start a Discussion
Geoff SpozettaGeoff Spozetta 

Rendering Visualforce page based on if User Created Record/

Hi all,

I need to change the rendering of a page so that only a system administrator or the person who created the entry can access the entry. I am thinking that I should be able to insert something like:

    <apex:PageBlock rendered="{!$User.id==!icustom_object__c.CreatedByID}" >            

However this seems not to work because: Error: Incorrect parameter type for function 'not()'. Expected Boolean, received Text

Which I do not fully understand, Can someone please let me know?

Best Answer chosen by Geoff Spozetta
Bhaswanthnaga vivek vutukuriBhaswanthnaga vivek vutukuri
 rendered="{!IF($User.Id==icustom_object__c.CreatedByID, true, false)}"