Create Child Records With Form Repeated Section & Section
Overview
In SharinPix Forms, every form response is directly linked to a parent record, which represents the object from which the form was initially launched. Beyond capturing information for the parent, the platform also provides the flexibility to create child records associated with it.
For example, if the parent record is an Account, the form can generate multiple Contact records linked to that account. This is achieved through form sections: each section can be mapped to a single child record. In cases where repeated sections are used, each repetition creates a new record—so if a user completes 10 repeated sections, 10 corresponding child records (e.g., Contacts) will be created.
This feature ensures that SharinPix Forms not only capture structured data but also seamlessly extend Salesforce’s relational model, making it easier to manage and organize information.
This article covers the following:
Prerequisite:
Before using this feature, ensure:
You are using the most recent version of the SharinPix Package. Follow this document to upgrade the SharinPix package
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.
Getting Started
How to configure sections on your Form Template to create child records for Template parent object
The first step is to create and configure a section that will serve as the basis for generating the child record — or multiple records if it is set up as a repeated section.

Each section of the form includes an Advanced tab configuration in which you will find Salesforce Record Mapping. This configuration is divided into three key parts:
Child Object API Name – specifies the Salesforce object to be created.
Lookup API Name – defines the lookup field on the child object that links it to the form’s parent record.
Formula Condition – determines the criteria under which the child record(s) should be created.

Once the child object details have been configured, you can define how data from the form will populate Salesforce fields. Click the “+” icon to add new mappings, each representing a link between a form field and its corresponding Salesforce field. This ensures that when a form response is submitted, the captured data is accurately updated in the appropriate fields within the newly created child record.

A dropdown list containing all Form Question API Names from the current section will be available for selection. After choosing a question, enter the corresponding Salesforce Field API Name of the child record to which the selected question should be mapped.

As shown in the picture above, the "Inspection Checklist" section has been configured to create Fire Inspection records with 2 fields to input:
On the Inspection record page, when a SharinPix Form is launched, completed, and submitted, a corresponding Form Response is created in Salesforce. If the Create Records condition evaluates to true, a new child record is automatically generated and linked to the Inspection record. This relationship can then be viewed under the Fire Inspection related list.

The corresponding values are then automatically populated in the newly created child record — Fire Inspection in this example as illustrated below.

Creating multi-level records with nested repeated sections
You can create child records in a nested tree structure. By configuring your Form Repeated Sections in a nested tree structure, for example, Contact -> Case
To build a form with nested repeated sections representing each object, follow these steps:
Define the Parent and Child Objects:
Start by defining the primary object, such as Contact, as the parent record.
Next, introduce the Case as a child record under the Account.
This can go on and continue for child objects of Case, etc.
By following these steps, you can efficiently set up a form that handles multi-level data structures in a coherent manner.

The picture above showcases how a simple form containing 2 repeated sections is built.
At the root, we have 2 Form Questions:
Inspector name: Text question
Contacts: Repeated Section configured to create contacts from the parent object (Account in this example)
Inside the Repeated Section Contacts, we have 3 questions:
Last name: Text question representing the LastName of the contact child record being created
First name: Text question representing the FirstName of the contact child record being created
Cases: Repeated Section configured to create cases from its corresponding contact parent object

The picture above illustrates the completed form. It shows two contact sections: one for Thorne, which includes two Case child records for Contact Thorne, and another for Vance, which contains one Case child record.
Once the form is submitted (from an Account record in our scenario) it will create 2 contacts Julian Thorne and Elena Vance.
Contact Julian Thorne will have two Case records, and Elena Vance will have one Case record, as shown in the picture below.

In summary, the above example demonstrates how to efficiently create multiple levels of related records within a form. By utilizing nested Repeated Sections, you can streamline the process of associating child records with parent records, enhancing data organization. You can create child records nested deeper than 2 levels (Contacts -> Cases) as needed to suit your data hierarchy requirements.
Warning:
There is no limit on the number of nested Repeated Sections creating records. But beware that this will increase your organization's governor limit for DML operations for each nested level
Last updated
Was this helpful?

