Filtering Repeat Group Entries

This guide will explain how to filter Repeat Group entries on your form.

  1. Initial Setup:
  • Drag and drop a “Header” (optional), “Salesforce Select”, “Select”, and a “Hidden” field onto your form.
  • Rename the fields as needed.
image
  • Drag and drop an “HTML” and six “Hidden” fields inside a “Repeat” field.
  • Rename the fields as needed.
image
image
  • Drag and drop an “HTML” and a “JavaScript” field.
  • Rename the fields as needed.
image
  1. Configuring The “Salesforce Select” Field:
  • Click the pencil icon of the “Salesforce Select” field.
  • Set “Object” and “Display Additional Fields” as shown below.
  • Add “Record Filter” - Type != null
image
  1. Configuring The “Select” Field:
  • Click the pencil icon of the “Select” field.
  • Add “Select Options” as shown below.
image
  1. Configuring The “Hidden” Field:
  • Click the pencil icon of the “Hidden” field.
  • Add merge field as Value.
  • Here, 4bd3-14ec-7178 is the field ID of the “Select“ field labelled “Opportunity Stage Name”.
  • Enable the merge fields option.
image
  1. Configuring The “Repeat” Field:
  • Click the pencil icon of the “Repeat” field.
  • Click “Salesforce Pre-Fill”.
image
  • Set “Object”, “Formyoula Parent Field” and “Salesforce Parent Field” as shown below.
image
  • Set “Autofill connection” as shown below.
  • Note: We will create a connection in step 10.
image
  1. Configuring The “HTML” Field:
  • Click the pencil icon of the “HTML” field.
  • Paste the code.
image
  • Please use this code.
  • Please make sure to update the field IDs as per your form.
  • Here,
    • aa1d-9c98-b724 is the field ID of the field labelled “Opportunity Name”.
    • 7005-7c8b-6e9a is the field ID of the field labelled “Opportunity Stage Name”.
    • 81a7-0610-8e6b is the field ID of the field labelled “Opportunity Close Date”.
    • a0df-f41f-f870 is the field ID of the field labelled “Opportunity Amount”.
    • c814-6c4e-e460 is the field ID of the field labelled “Hidden Stage Name For Filtering”.
<b>{{aa1d-9c98-b724}}</b> <br>
<b> {{7005-7c8b-6e9a}}</b><br>
<b> {{81a7-0610-8e6b}}</b>  
<br>
<b> {{a0df-f41f-f870}}</b>
<br>
<b>{{c814-6c4e-e460}}</b>  
<br>
  • Enable the Reload on Merge Field Change option.
image
  1. Configuring The “Hidden” Field:
  • Click the pencil icon of the “Hidden” field.
  • Add merge field as Value.
  • Here, 7005-7c8b-6e9a is the field ID of the “Hidden“ field labelled “Opportunity Stage Name”.
  • Enable the merge fields option.
image
  1. Configuring The “HTML” Field:
  • Click the pencil icon of the “HTML” field.
  • paste the code.
image
  • Please use this code.
  • Please make sure to update the field IDs as per your form.
  • Here,
    • 9a2a-1b7d-76dd is the field ID of the Opportunity Repeat Group field.
<style>

#component-9a2a-1b7d-76dd .new_repeat_entry_panel {
  display: none;
}

#component-9a2a-1b7d-76dd tr td:nth-child(3), 
#component-9a2a-1b7d-76dd th:nth-child(3) {
  display: none;
}

#component-9a2a-1b7d-76dd tr td:nth-child(2), 
#component-9a2a-1b7d-76dd th:nth-child(2) {
  display: none;
}

.formyoula-Repeat thead {
  display: none;
}

</style>
  1. Configuring The “JavaScript” Field:
  • Click the pencil icon of the “JavaScript” field.
  • Paste the code.
image
  • Please use this code.
  • Please make sure to update the field IDs as per your form.
  • Here,
    • 4bd3-14ec-7178 is the field ID of the “Select” field labelled “Opportunity Stage Name”.
    • cfda-14a1-3081 is the field ID of the “Hidden” field labelled “Hidden Field”.
    • c814-6c4e-e460 is the field ID of the field labelled “Hidden Stage Name For Filtering”.
  • Save the changes.

10. Creating The Salesforce Connection:

  • Create a Salesforce Connection to prefill the Repeat field.
  • Note: Please check out this guide to create Salesforce Connection in detail: https://guides.formyoula.com/public-guides/creating-form-connections
  • Select “Salesforce” from the available connections list.
image
  • Select the “Opportunity” object.
image
  • Map the form fields with the Object fields as shown below.
image
  1. Test Your Form:
  • Try the form.
image
  • Select an Account.
  • It will display the Opportunities.
image
  • Selecting the Opportunity Stage Names will filter the records.
image
image

Example Form:

Example Form [Filter Repeat Group Entries].json15.5KB

For any questions, please contact us - [email protected] or the Formyoula in-app chat. 🙂