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
Henrik E.Henrik E. 

Rich Text Area on VisualForce (Invalid field error)

Hi,

currently working on a PoC compiling a pdf from a custom object record. Using a button to redirect to a vf page, rendering the record data as PDF. Still in the very beginingn just checking whether fields render appropriately on the vF page, however am facing an issue rendering a rich text field.

Code and error below:
<apex:page StandardController="DokumentenTemplate__c" showHeader="false" renderas="pdf">
This is a standard field on the object: <br/>
{!DokumentenTemplate__c.Name}
<br/>
<br/>
This is a simple custom text field: <br/>
<apex:outputText value="{!DokumentenTemplate__c.Signatur__c}" escape="false"/>  
<br/>
<br/> 
This is where the richt text area should be displayed: <br/>
<apex:outputText value="{!DokumentenTemplate__c.Fusszeile__c}" escape="false"/> 
</apex:page>

The error I'm getting is the following:
Error: Invalid field Fusszeile__c for SObject DokumentenTemplate__c

API Name of the Object: DokumentenTemplate__c
Name of the field: Fusszeile__c

Queried, but couldn't find a similar post on this. Any recommendation on how to display this would be appreciated.

Thanks,
Henrik 

daniel_hdaniel_h
You've got the right syntax. I have no problem outputting a rich text field in apex:outputText. Are you sure the API names are correct? That's really what that error message is saying.