Salesforce Child Record Auto-Fill Using Repeat Groups

In this guide, we will explain how to create a form with repeat group pre­fill functionality that displays all child records based on a parent record found via the Salesforce lookup field. You will be able to update any of the child records.

The Repeat group will be linked to a master field that will provide the Salesforce master record ID. For example, if the repeat group is listing Contact records the master record will be AccountId. If the repeat group is listing Tasks the master record will be WhatId or WhoId. Additional options will allow you to filter the related records and choose the Formyoula connection that will be used for field pre­fill.

1. Go to Formyoula.com and click “Sign In”.

image

2. Click “New Form”.

image

3. Click “Rename” to give your new form a name.

image

4. Drag and drop a Salesforce Lookup field from the “Salesforce” section. This will be used to search for existing Account records in Salesforce.

image

5. Click on the “pencil” icon and edit the Salesforce Lookup field. We will name the field label “Find Account Record” and we will select “Account” from the available “Object” list.

image

6. Please save and close the form.

image

7. Please click on the “Actions” button and select the “PDF Editor” option.

image

8. Please find the Salesforce Lookup and copy the merged field ID.

image

9. Once copied, please go back to the form builder’s page by clicking on the form’s name.

image

10. Next, please drag and drop a “Repeat Group” element on your form from the “Select” section. Click on the “pencil” icon and add the necessary fields. Apply the changes when done.

  • First, please input the Child Object name.
image
  • Next, please paste in the merged Salesforce lookup field ID in the “Formyoula Parent Field” tab.
image
  • Please input the Salesforce parent object’s API name in the “Salesforce Parent Field” tab.
image

11. Please drag & drop all the necessary fields for the child record update. Please include Hidden fields for the Record ID and Parent Record ID, this will be used for the existing record update.

image

12. Please save and close the form.

image

13. Click on “(Add)” under the “Connections” column or click on the “Create a Connection” button, or select “Add/Edit Connections” from the “Actions” available list.

image

12. Select “Salesforce” from the available connections list and click “Create Connection >>”.

image

13. Select “Contact” from the available Salesforce Object list and click “Save”.

image

14. Next, please select the repeat group section “Contact” under the “Use Repeat Group” section. This will ensure the creation or update of multiple records in Salesforce.

image

16. Save the record settings when done.

image

17. Please create all the necessary mappings for the Contact object including the Record ID and Parent Record ID (in this case Account ID) fields.

image

18. Next, please copy the 24 digit connection ID from the URL.

image

19. Next, please go back to the form builder and edit the repeat group field. Please paste in the connection ID in the “Autofill Connection” tab. This will be used for the child record prefill.

image

20. Please save and close the form once done.

image

21. Please click on the blue “Try” button next to the form. This will open the mobile web app.

image

22. Please select the newly created form.

image

23. Now, once we find an existing Account record by using the Salesforce Lookup field all the associated Contact child records will be automatically pre-filled in the repeat group sections.

image

For any questions, please email [email protected]