I’m hoping someone can help me figure this out. I have a tender listing page where users can filter tenders by publisher, category, or location. I’ve also set up an “Alerts” workflow that sends email notifications to users when a new tender matching their criteria is added.
In the email notification, I include a link that’s supposed to take the user directly to the relevant tender. To achieve this, I add a URL parameter called “pub” (short for publisher) to the link. When the user clicks the link, the app retrieves the “pub” parameter from the URL and sets it as the default value of the “Publisher” dropdown. This should filter the repeating group (RG) to display the corresponding tenders.
The issue I’m facing is that while the parameter is correctly retrieved and set as the dropdown’s default value, the RG doesn’t filter automatically. It only filters if I manually select the publisher from the dropdown.
Can anyone help me understand what I might be doing wrong?
The issue happens because the dropdown value updates programmatically, but the Repeating Group (RG) doesn’t automatically refresh. To fix this, follow these steps:
Steps to Fix the Issue:
On Page Load – Retrieve the Parameter & Trigger the RG Refresh:
Go to your workflow editor:
Event → Page is Loaded.
Action → Element Actions → Display List (Repeating Group).
Set the RG’s data source with a constraint:
Publisher = Get data from URL (parameter: pub).
Dropdown Default Value:
Ensure the Dropdown’s Default Value is set to:
Get data from URL (parameter: pub).
Conditional Filtering (Optional):
In the RG’s Data Source, add a condition:
Only show results when Dropdown’s Value = Publisher.
Why This Works:
The “Display List” action forces the RG to refresh and apply constraints based on the URL parameter.
The Dropdown’s default value syncs visually, but the workflow ensures the data updates.
Let me know if this works or if you need help setting up workflows!
About Us:
We’re If-dev, a Bubble agency helping apps work flawlessly. If you need further guidance, feel free to connect: