Hey @jerneva.cowell
Below, I right some things that can be a problem and how to fix:
The issue described indicates that the user tried to create a Custom State to control the number of visible items in a Repeating Group (RG), but this state is not appearing as an option in the :items Until drop-down menu. This can occur for several reasons. Here are some possible causes and solutions:
- Custom State was not created in the correct element
Cause: The custom state must be in the same element (or in an accessible parent) to be referenced. If the Custom State was created in another group or element, it may not appear in the :items until dropdown.
Solution:
Make sure the Custom State was created in the same group or in an element accessible by the hierarchy.
If it is on the page, use “This Page’s Custom State”.
If it is in a parent group, the Repeating Group must be within that group to access it.
- Custom State is not being called correctly
Cause: The user may be trying to access the Custom State without properly referencing the element where it was created.
Solution:
When setting :items until, manually type “Element Name’s Custom State” to force Bubble to recognize it.
If the state is on the page, use “This Page’s Custom State”.
3. Repeating Group is not updated
Cause: If the Custom State was created after the Repeating Group was set, Bubble may not have updated the available options.
Solution:
Refresh the page or remove and re-add the Repeating Group to ensure Bubble detects the new Custom State.
- Custom State not initialized correctly
Cause: Bubble does not recognize null values in some cases. If the Custom State does not have an initial value, it may not be detected correctly.
Solution:
In the Page Load flow, add a “Set State” action and set the Custom State to 4 (or another initial value). How to Implement the “View More” Function Correctly
Create a Custom State in the RG or in a Container Group
Name: visible_items
Type: Number
Initial Value: 4
Define the Repeating Group Condition
Data Source: Search for Items:items until Parent Group’s visible_items
Add a “View More” Button and Create a Workflow
When the button is clicked, Set State → visible_items = visible_items + 4
Hide the “View More” Button When All Items Are Visible
Button Condition: When visible_items >= Search for Items:count → This element is not visible
The issue is likely related to the Custom State data type, the element hierarchy, or the Bubble refresh.
If you have a question, please send me a message on DM