Reopen A Previously Submitted SharinPix Form

To reopen a submitted SharinPix Form Response using the SharinPix Form Relauncher LWC, it should be dragged and dropped on the submitted SharinPix Form Response Record Page.

This article consists of:

circle-exclamation

Reopen A Previously Submitted SharinPix Form Using LWC

Submitting a SharinPix Form creates a SharinPix Form Response Page on Salesforce.

From the SharinPix Form Response Record Page App Builder, drag and drop the SharinPix Form Relauncher LWC on the page as shown below. The configuration parameters are similar to the SharinPix Form Launcher. It can launch the form in a new tab on the web browser if the Open in Online Mode is checked, else it will launch the SharinPix Mobile App.

Once the changes are applied, the form can be reopened with all the data from the FR-0080.

Reopen A Previously Submitted SharinPix Form Using LWC In Digital Experience

In the Experience Builder, navigate to the SharinPix Form Response or Form In Progress record page. Drag and drop the SharinPix Form Relauncher component onto the layout and configure the parameters. Once configured, the form can be reopened with its existing data.

SharinPix Form Relauncher parameters in Digital Experience Builder:

Parameter
Description
Default/Notes

Record Id

The Salesforce record Id of the form response or form in progress.

Use {!recordId} to dynamically retrieve the record Id.

Object API Name

The object API name from where the SharinPix Form Relauncher is being used.

This component is intended to be used on sharinpix__FormResponse__c and sharinpix__FormInProgress__c only.

Button Label

The text displayed on the button.

Name Field API Name

The field API name to be used as job name.

If set to None, value will default to either the record's name (if available) or the record ID.

Custom Parameters

Additional user-defined parameters to append to the SharinPix Form launcher URL.

Open in Online Mode

Open the form in online mode.

Use Deeplink format

Generate a deeplink when enabled instead of a universal link.

Reopen A Previously Submitted SharinPix Form Using URL Parameters

To reopen a submitted SharinPix Form Response, the form_response_url and form_response_id have to be added to the form URL. The form_response_url is the FormResponseDataURL__c, which stores all the data, including images, of the submitted SharinPix Form Response. The form_response_id is the PublicId__c, which contains the SharinPix ID of the Form Response.

circle-exclamation

Configuring URL Parameter Using A Flow

An example can be to use a flow, such as a record-triggered flow, when a SharinPix Form Response record is created. The existing Generate Form URL Automation can be used to generate a new Form URL with the Form Response Data URL and Form Response Public ID of the triggering record as custom parameters:

This will allow a user to reopen the submitted SharinPix Form Response (including all data such as input values, images, etc.) and submit a new one.

The following example shows how a flow has been used to generate and update the Description field of the parent Account Record with the URL to reopen the last submitted SharinPix Form Response.

To configure this using a Universal Link, simply append the form_response_url and the form_response_id to the URL as follows:

Prefill Behavior When Reopening A Form

This setting controls what happens to each question when a submitted form is reopened.

Open the question you want to configure, then go to the Advanced tab.

In Value when reopening the form, select the behavior you want to use.

Each question can use one of these options:

  • Keep previous form answer

  • Update via Salesforce/URL

  • Clear previous form answer

Keep previous form answer

  • This is the default behavior.

  • The previously submitted value takes priority for that question.

  • If no previous value exists for that question, it follows the normal starting behavior.

  • That can include a prefill value from Salesforce fields, a value passed through pv parameters in the form URL, a default value, or a blank state.

Update via Salesforce/URL

  • Use this option when the question should reflect the latest available prefill value.

  • This includes prefill values from Salesforce fields pulled through Pull data from a Salesforce field to pre-fill this value.

  • This also includes values passed through the form URL by using pv parameters such as pvName=John.

  • If a new prefill value is available when the form is reopened, it replaces the previously submitted answer for that question.

  • If no prefill value is available, the previous answer is kept.

Clear previous form answer

  • Use this option when the question should be reviewed again.

  • The previous answer is discarded when the form is reopened.

  • The question can still receive a prefill value from Salesforce fields or a value passed through pv parameters in the form URL.

  • If no prefill value is available, the question falls back to its default value or stays blank.

circle-info

Use Keep previous form answer to persist previously submitted answers, Update via Salesforce/URL for values that should stay in sync with current Salesforce field values, and Clear previous form answer for questions that should be reviewed again when a form is reopened.

Last updated

Was this helpful?