Hello, how to do something like shows next item with a button (custom list)? Let say I have an Ideas Collection. Instead of I list all of that Idea in the same page vertically, I just want to list only 1 idea per page. When user click next button, it will shows the next idea that is the created date is newer than the ide before.
Gotcha. The easiest way to do this would be to have an invisible input field with a Next button that has the Action “Change input value”. That action would change what is in the input field and you can filter lists and show records based on what is in that field.
So each record in the idea collection would have a number property called idea number or something similar. You can set the initial value of the invisible input to be the first idea when they visit the page, then filter the list based off of what is in the invisible input. When you hit next it adds one to the input so now you’re viewing Idea #2. Hit next again, it changes the input by one, and now you’re viewing Idea #3 and so on.
And what if between one idea to another sometimes have a space? Because I’m filtering the idea based on category. So maybe in category A it will be number 1,2,5,7,11 in category B it willbe number 3,4,6,8,9,10. Because between one and another user can add their idea in different category and in different time. So the number of the idea between category won’t be sequential.
Also what if there are several filtering that in the later some ideas won’t show up to some users even in the correct category. Let say when users choose to not interested with an idea, then those idea will not show up anymore. (It’s same with Tinder)
I think simply adding 1 to the input value won’t work? Or do I missing something here?
Since I can’t find any solution yet, I’ve applied a trick to achieve this.
I just make an ordinary list that still shows all of the list records, but I add a transparent rectangle in the bottom of the list that extends (very long) downwards.
So whenever the user try to scroll down, they only find a white background and they’ll think that there is no more record below.
After they push the next button (for my case is Accept or Reject), it just make that current record disappeared, and the next record from the bottom will automatically going up.
Here is my solution for displaying next and back buttons for lists filtered by category.
The hidden input is not needed.
A list with a display limit of 1 item is used as a button.