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:
Prerequisites
Before configuring this functionality, ensure the following:
You have the latest SharinPix Package installed. This feature requires version 1.385 or higher. You can follow this guide to upgrade your SharinPix Managed Package to the newest version.
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.
A form template has been created using the SharinPix Form Template Editor.
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 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.
Submitting this form will create a new SharinPix Form Response record on Salesforce.
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:
form_response_url={!$Record.sharinpix__FormResponseDataURL__c}&form_response_id={!$Record.sharinpix__PublicId__c}
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.
Configuring URL Parameter Using A Universal Link
To configure this using a Universal Link, simply append the form_response_url and the form_response_id to the url as follows:
https://app.sharinpix.com/native_app/form?token=<sharinpix-form-token>&form_response_url=<FormResponseDataURL__c>&form_response_id=<PublicId__c>
Preserve Value Of Only Part Of The Form When Re Opening A Form
Users can configure individual Form Questions so they do not automatically reuse (refill) values from previous submissions. This setting is available in the Advanced tab of a question configuration panel in the SharinPix Form Template Editor.
In the example below, the Site Summary Form Section has been configured to not use the value from the previous form submission, only when the custom parameter stage=review is included in the form URL.






0 Comments
Add your comment