Skip to main content

How to ensure re-selecting restricted items after filtering will not be selected

  • January 26, 2026
  • 0 replies
  • 62 views

Forum|alt.badge.img+2

šŸ›  How to ensure re-selecting restricted items after filtering will not be selected
Ā 

šŸ“‹ Use Case

You have a repeatable product selection question group with filters, and need to prevent users from selecting the restricted items by changing the filters after selection

Ā 

āœ… Pre-Requisites

Before you begin, confirm the following:

  • Knowledge of repeatable question groups using filters.
  • Configured Product Selection question group, with ā€˜Select and Add’ button, filters enabled
  • Enable population of product attributes into playbook questions
  • Product attribute (Text/Text List) containing the filtering value

🧭 Step-by-Step Instructions (Salesforce)

1ļøāƒ£ Create a copy of the unique value in the Repeatable Group

  1. Outside of the repeatable question group, add a Text List question, to be used as the filter

  2. Values should be the different values that you filter according to, e.g ā€˜Tier 1’, ā€˜Tier 2’, ā€˜Tier 2’

    Ā 

    QG1.Tier_Selection

    Ā 

    Ā 

2ļøāƒ£ Create a placeholder for the filtering attribute in the Repeatable Group

  1. In your repeatable question group, add a Text List question.

  2. Values can be anything, knowing that the product attribute will overwrite it, you can use '-'
    * Enable Multi-Selection
    * Make sure the Id of the question, matches the name of the Product Attribute, e.g ā€˜Tier’

  3. Create a Calculated Answer, ā€˜counter’ with the value of 1 [can be hidden]

Ā 

repeatable.Tier repeatable.counter

Ā 

Ā 

3ļøāƒ£ Back to QG1 - create more questions

  1. Create Text List question Non_selected_Tier [can be hidden]Values should be all available values for that product attribute e.g ā€˜Tier 1’, ā€˜Tier 2’, ā€˜Tier 3’
    * Enable multiple selection
    * set all values as default
  2. Use Exclude filter, and choose the QG1.Tier_Selection question
  3. Create Text question table_selected_Tier [can be hidden]
    Value should be a reference to the attribute placeholder in the product selection question group %repeatable.Tier%
  4. Create a calculated answer ā€˜number_or_rows_in_selection_table’, value should be the ā€˜repeatable.counter’[can be hidden]
  5. Create a text question (Rich Text optional)
  6. this question will be presented when there is a product in the table, with a Tier which does not match the selection on the top [set it as read-only]
    e.g ā€œYou have selected products that do not match the selected Tierā€
    * Define the warning question to be Rule-Base
    the rule:Ā IncludesANY([QG1.Non_selected_Tier],[repeatable.Tier]) OR !IncludesANY([repeatable.Tier],[QG1.Tier_Selection]) AND [QG1.number_or_rows_in_selection_table] > 0
  7. Add a validation rule:
    Rule: [QG1.warning_error] != ""

Ā 

QG1.Non_selected_Tier QG1.table_selected_Tier QG1.warning_error QG1.number_or_rows_in_selection_table

šŸ Result

When users select records, if there are items that do not match with the selected filter a warning will pop-up, also a validation rule will be triggered

Ā 

Ā