Record radom option set

Hello everyone,

I have an option set name OS with few options
OS_1
OS_2
OS_3

I would like to record randomly an option set when I click on a button.

For example :
I have a table USER with :
Field_Name
Field_OS

In the app:
I have an input and I write a name
I click on a button “Let’s go”
And Bubble choose OS_2 for the field Field_OS next to the field Field_Name.

How could I do it?

Thank you

Consider the :random item operator.

1 Like

Thank you for the documentation.

I did like it :

How could tell at Bubble, don’t repeat the Option set twice ?

Thank you

Full list followed by :minus list followed by :random item.

I don’t get it.
I think I understood the logic but I don’t achieve it.

With this formula, t does not workd, I have nothing selected :
Screenshot 2024-08-02 at 06.39.01

Thnank you

All OS_role:minus list [insert here the list you want to exclude] :random item

Hello David,

It works !

Below the right formula

Thank you a lot !

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.