I would like to display randomly in a Hint component only 1 quote from one of this 3 columns and avoid empty cells.
And every time the user hit the component, it displays an other quote randomly.
Get the list of all quotes available (for the next hit on the button), let’s call it All 3 columns without previous quote. It’s a Remove Element column:
Add a Date & Time column in order to store the exact moment the user hits the button. Our random will be based on that later on (Date and Time for Random):
Lastly, we need the data as a text instead of an array to make it useable in a component. New quote in text, a Joined List column will be useful for this purpose:
When the User will hit the button, it’s going to change the Date & Time for Random column. The value will be used to define a value between 0 and the total number of quotes - 1 (we don’t want to reach the same quote again).
Because we have replace the Previous quote with the one we displayed, you can be confident on the fact it will not pop for this new draw.
And it deals with empty cells, as you can see in the Quotes table: I intendty not filled all cells for this exact reason: as you can see, everything works fine
So in your database, you have a list of quotes for Motto, Guilty pleasure, and Shortcoming, and the full space you’re consider is all those quotes, avoiding empty cells?
Does your screenshot is from the Users table @Korbib?
If so, you just have to apply the steps from what is described preivously, moving all firsts steps about Quotes table directly inside the Users one
And of course, win one manipulation using tip provided by @Darren_Murphy!
In the layout, you can also use an action directly in the Hint component. Same logic (action with Set column value)
Where are you stuck, maybe we could help you from there?
I don’t want to use the Hint component because I don’t want to have an action button.
I know it’s a bit strange but my goal is to have a hidden feature
The problem is when the random hits an empty cell, the component dispear and sometimes there is no component because all 3 single value columns hit an empty cell.
That why I wanted to combine these 3 columns into one without empty cells