Hello!
I would just like to ask if I can write the value of an option set directly as a text into a bubble database?
For Example:
the option set “hello” contains 2 values:
["bye","bai"]
in the database I am using the optionset “hello” in my datatype “greeting”:
{
"sendoff":"bye"
}
can I just set the value of “sendoff” to “bai” Directly through the Bubble API?
Edit: Formatting
Hey @drplanecraft
The option within an Option Set is not exactly a text per say. Its display is a text.
If I understand correctly you’re receiving the value “bai” via API and you want to store that value in the “sendoff” field in a Thing.
What you can do in your workflow is the following:
-
Make changes to Thing → sendoff = Get an option

-
Choose the Option Set (in your case, “hello”) and select “All options”

-
Add a filter and look for the option that matches the text received via API. The end result should look something like All hello:filtered → This hello’s Display is [text received]
Let me know if that helps