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
Ranjith PunneliRanjith Punneli 

Rendered based on rich text field

Hi All,

 

How can I use rendered statement based on rich text field null or not?

 

<apex:outputField value="{!w.Event_Image__c}" rendered="{(w.Event_Image__c <> Null)}" /> <br/>

 

Event_Image__c is a rict text field.

 

Thanks,

R

Hengky IlawanHengky Ilawan

Hi,

 

If the text area is NULL, it will not display anything even if you don't use the rendered attribute, right?

 

Regards,

Hengky

Ranjith PunneliRanjith Punneli

<apex:outputField value="{!w.Event_Image__c}" rendered="{(w.Event_Image__c <> Null)}" /> <br/>

<apex:outputField value="urlfor(from static rsource)" rendered="{(w.Event_Image__c == Null)}" /> <br/>

 

I need to display event image when it is not null or an image from static resource if event image is null.