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
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)}"