---
schema_version: "1"
id: 6bba71b32ebe1170005c4d2aadb391ba37af92c80684aff367e2885c0f6d08d2
title: support:portalPublisher
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/components/pages-compref-support-portalpublisher.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-compref-support-portalpublisher.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4df66df8bfa23c37b1cffb737280319b529d4649ae7e0384995928198ac28a2a
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# 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.

```visualforce

            <apex:page standardController="Case" showHeader="true">
                <support:portalPublisher id="myPortalPublisher"
                    entityId="{!case.id}"
                    answerBodyHeight="10em"
                    width="500px"
                    answerBody="This is the default Answer"
                    autoCollapseBody="false"
                    showSendEmailOption="false"
                />
            </apex:page>


```

## Attributes

| Attribute Name        | Attribute Type | Description                                                                                                                                                                                                              | Required? | API Version | Access |
| --------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | ----------- | ------ |
| `answerBody`          | String         | The default text value of the answer body.                                                                                                                                                                               |           | 25.0        |        |
| `answerBodyHeight`    | String         | The height of the answer body in ems (em).                                                                                                                                                                               |           | 25.0        |        |
| `autoCollapseBody`    | Boolean        | A Boolean value that specifies whether the answer body will be collapsed to a small height when it is empty.                                                                                                             |           | 25.0        |        |
| `entityId`            | id             | Entity ID of the record for which to display the portal publisher. In the current version, only Case record ids are supported.                                                                                           | Yes       | 25.0        |        |
| `id`                  | String         | An identifier that allows the component to be referenced by other components in the page.                                                                                                                                |           | 14.0        | global |
| `onSubmitFailure`     | String         | The JavaScript invoked if the answer failed to be published to the portal.                                                                                                                                               |           | 25.0        |        |
| `onSubmitSuccess`     | String         | The JavaScript invoked if the answer was successfully published to the portal.                                                                                                                                           |           | 25.0        |        |
| `rendered`            | Boolean        | A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true.                                                                                             |           | 14.0        | global |
| `reRender`            | Object         | The 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        |        |
| `showSendEmailOption` | Boolean        | A Boolean value that specifies whether the option to send email notification should be displayed.                                                                                                                        |           | 25.0        |        |
| `showSubmitButton`    | Boolean        | A Boolean value that specifies whether the submit button should be displayed.                                                                                                                                            |           | 25.0        |        |
| `submitButtonName`    | String         | The name of the submit button in the portal publisher.                                                                                                                                                                   |           | 25.0        |        |
| `submitFunctionName`  | String         | The name of a function that can be called from JavaScript to publish the answer.                                                                                                                                         |           | 25.0        |        |
| `title`               | String         | The title displayed in the portal publisher header.                                                                                                                                                                      |           | 25.0        |        |
| `width`               | String         | The width of the portal publisher in pixels (px) or percentage (%).                                                                                                                                                      |           | 25.0        |        |
