📋 Use Case
You have a repeatable product selection question group and need to prevent users from selecting the same product multiple times.
✅ Pre-Requisites
Before you begin, confirm the following:
-
Familiarity with Select and Add button functionality.
-
Knowledge of product filters.
-
A multiple-choice text list question with all possible values pre-selected by default.
-
A product attribute (e.g., SKU) exists for each product, matching the text list values to enable exclusion once selected.
🧭 Step-by-Step Instructions
1️⃣ Create a Concatenated SKU Field in the Repeatable Group
-
In your repeatable question group, add a Text question.
-
Reference the product attribute you want to exclude, for example:
%product_selection.sku%; -
Include a semicolon and a space (; ) at the end.
-
Name this field:
product_selection.sku_concat
2️⃣ Aggregate SKUs Outside the Repeatable Group
-
Outside the repeatable group, create a Text answer.
-
Reference the concatenated SKU field you created in Step 1:
%product_selection.sku_concat% -
Name this field:
outside_repeatable.sku_concat_aggregation
3️⃣ Configure the Text List with Exclusion
-
Outside the repeatable group, create a Text List answer with all values pre-selected.
-
Enable Multi-selection.
-
Enable the Exclude filter and reference your aggregated SKU:
[outside_repeatable.sku_concat_aggregation]
4️⃣ Verify the Configuration
-
Confirm your outside group now contains:
-
outside_repeatable.sku_concat_aggregation (aggregated SKUs).
-
text_list_with_all_values_and_exclude (values with the exclusion filter).
-
🏁 Result
When users select products, already-selected SKUs are dynamically excluded from the available options. This prevents duplicates and keeps your product selection process clean and efficient.
