I have a repeating group that loads 25 products on page load & adds 10 at a time through a custom state, it works fine on page loads but when a filter is used (Option Set Dropdown). It Filters the products & scrolls to entry fine but the count won’t reset.
Ex If the user presses the button 4 times & decided to filter to a different product it will load all 65 items at once opposed to resetting at 25. Any help fixing this will be greatly appreciated.
J805
2
Hmm 
When they change the filter, are you resetting your state to 25? What does your workflow look like? Hope we can figure this out for you. 
Send a screenshot of your workflow
Normally it should always reset to 25 with or without using a filter when the page is loaded.
First, does your custom state have a default value - i.e create a custom state where label it "productDisplay " with a type called number - and put 25 as default value.
On your repeating group it should have something like search for product items until #"pagename"productDisplay
and for your load more button,
workflow should be - set a state
element: #pagename
customname- productDisplay-
value : productDisplay+10
Is this how you set up your workflow , if so it should normally reset when page is loaded
Repeating Group Page Load
Show more workflow
Hide Filter Workflow
Hope I provided the correct details
I think resetting the state is the part that I’m missing
2 Likes
Yep. If the filter changes, reset the element with the state.
Just add the action “reset a group/popup” to the filter workflow and reset the group with the custom state. Or, you can use the “set state of an element” action and set it to 25.
system
Closed
10
This topic was automatically closed after 70 days. New replies are no longer allowed.