> For the complete documentation index, see [llms.txt](https://docs.sharinpix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharinpix.com/documentation/lightning-web-component/sharinpix-form-in-progress-lwc.md).

# SharinPix Form In Progress LWC

## Overview

The **SharinPix Form In Progress** component allows users to access Form responses that have been saved as drafts in Salesforce. Users can reopen a draft response, update its content and submit the form when it is ready.

To allow users to save a Form as a draft, enable the **Save as Draft** button. For configuration instructions, refer to [SharinPix Form In Progress](/forms/salesforce-integration/sharinpix-form-in-progress.md).

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

This feature is only available on Lightning. It can be used:

* On Experience Builder
* On Lightning App Builder
* On Desktop
* On Mobile

⚠️ This component cannot be used in Flows.\
⚠️ This component is only available on the object `sharinpix__FormInProgress__c` record page.
{% 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.
  {% endhint %}

## Getting Started

To use the **SharinPix Form In Progress** component:

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

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FKcWTpxtNaN14UxEK4OFI%2FSPX%20FIP.png?alt=media&amp;token=6b1d6fa7-5097-4b0e-ae4f-4d0b29c58aae" alt=""><figcaption></figcaption></figure>

## Lightning Component Parameters

<table><thead><tr><th>Parameter</th><th width="261.33203125">Description</th><th>Default/Notes</th></tr></thead><tbody><tr><td>Custom Parameters</td><td>Used to specify additional user-defined parameters to be appended to the SharinPix Form.<br><br>Example:<br><code>userId=&#x3C;Salesforce_User_Id></code></td><td>Default value: <em>None</em></td></tr><tr><td>Height</td><td>Used to specify the component's height.</td><td>Default value: <code>500px</code></td></tr></tbody></table>

## Demo and Behavior

### Example - Salesforce Record Page

The image below shows the **SharinPix Form In Progress** component in a Salesforce record page.

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FwvpThF7jjbSLN32flHoE%2FSPX%20Form%20In%20Progress.png?alt=media&amp;token=4abe8539-0ed5-490e-9b91-611fa155b0c7" alt=""><figcaption></figcaption></figure>

From here, the Form can be completed, saved, and submitted. Upon submitting the Form, the Form In Progress Record is deleted, and its corresponding Form Response Record is created. The PDF URL of the partially filled Form is also available from here.

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FHg8HY3kUpmxGvt66yXQi%2FFIP%20Submit%20Screen.png?alt=media&amp;token=11c3e990-fc2a-4ada-9cde-a177675e7dce" alt=""><figcaption></figcaption></figure>

After you submit the form, a confirmation screen displays "**Your form has been submitted"**. Use either button to continue:

| Button                | Description                                                        |
| --------------------- | ------------------------------------------------------------------ |
| **Review Submission** | Opens the submitted form response record in a new tab.             |
| **Return to Record**  | Opens the parent record where you completed the form in a new tab. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sharinpix.com/documentation/lightning-web-component/sharinpix-form-in-progress-lwc.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
