You need to sign in to do that
Don't have an account?

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?
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?

rendered="{!IF($User.Id==icustom_object__c.CreatedByID, true, false)}"