+ 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.