# SharinPix Form Response LWC

## Overview

The **SharinPix Form Response** Lightning Web Component (LWC) is designed to display and process form responses stored in Salesforce. It embeds the SharinPix Form Response viewer inside Salesforce record pages and Communities, enabling users to view submitted forms directly within the platform.

The component also checks whether the form response has been processed and provides contextual toast messages to guide users.

{% hint style="info" %}
**Info**

This feature is only available on **Lightning Experience**.\
It can only be used on the **Form Response record page** , including:

* On Page Builder
* On Desktop
* On Mobile
* On Community Builder.
* In your own Lightning Component development

⚠️ This component cannot be used in Flows.
{% endhint %}

{% hint style="warning" %}
**Prerequisites**

* **Permissions:**\
  Users must have the **SharinPix Forms** **Admin** or **SharinPix Forms User** permission set assigned. For more information on these two permission sets, check [*SharinPix Permission sets*](https://docs.sharinpix.com/documentation/access-and-security/sharinpix-permission-sets).
* **Package Version:**\
  Ensure that the latest SharinPix Package Version is installed.
* **Setup Requirements:**\
  A SharinPix Form Template must exist, and responses must be linked to Salesforce records via the `FormResponse__c` object.
  {% endhint %}

## Getting Started

To use the **SharinPix Form Response** component:

1. Open the **Lightning App Builder**.
2. Drag and drop the **SharinPix Form Response** component onto the **Form Response record page**.
3. Configure the component parameters as described below.
4. Save and activate the page.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-facbaba7b73b4fe9041026d91ce915783240b3ac%2FDOC%20SF%20-%201920%20x%201080%20\(1\)%20\(1\)%20\(1\).png?alt=media)

## Lightning Component Parameters

| Parameter | Description                                   | Default/Notes                       |
| --------- | --------------------------------------------- | ----------------------------------- |
| height    | The height of the component in pixels.        | Default: `500px`                    |
| recordId  | The Salesforce record Id of the form response | For Salesforce Community usage only |

## Demo: Fire Safety Inspection Example

The image below shows the **SharinPix Form Response** component configured on the **Form Response record page** for the **Fire Safety Inspection Form Template** , with the **Height** property set to `500px`.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-ed2272999a5221b627973c9e04ee6dd9ca7f3641%2FDOC%20SF%20-%201920%20x%201080%20\(2\)%20\(1\)%20\(1\).png?alt=media)
