support:portalPublisher

The Portal publisher lets support agents who use Case Feed compose and post portal messages. This component can only be used in organizations that have Case Feed enabled.

Example 

This example displays the Portal publisher.

1<apex:page standardController="Case" showHeader="true">
2                <support:portalPublisher id="myPortalPublisher"
3                    entityId="{!case.id}"
4                    answerBodyHeight="10em"
5                    width="500px"
6                    answerBody="This is the default Answer"
7                    autoCollapseBody="false"
8                    showSendEmailOption="false"
9                />
10            </apex:page>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
answerBodyStringThe default text value of the answer body. 25.0
answerBodyHeightStringThe height of the answer body in ems (em). 25.0
autoCollapseBodyBooleanA Boolean value that specifies whether the answer body will be collapsed to a small height when it is empty. 25.0
entityIdidEntity ID of the record for which to display the portal publisher. In the current version, only Case record ids are supported.Yes25.0
idStringAn identifier that allows the component to be referenced by other components in the page. 14.0global
onSubmitFailureStringThe JavaScript invoked if the answer failed to be published to the portal. 25.0
onSubmitSuccessStringThe JavaScript invoked if the answer was successfully published to the portal. 25.0
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 14.0global
reRenderObjectThe ID of one or more components that are redrawn when the answer was successfully published. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs. 25.0
showSendEmailOptionBooleanA Boolean value that specifies whether the option to send email notification should be displayed. 25.0
showSubmitButtonBooleanA Boolean value that specifies whether the submit button should be displayed. 25.0
submitButtonNameStringThe name of the submit button in the portal publisher. 25.0
submitFunctionNameStringThe name of a function that can be called from JavaScript to publish the answer. 25.0
titleStringThe title displayed in the portal publisher header. 25.0
widthStringThe width of the portal publisher in pixels (px) or percentage (%). 25.0