I am looking for an opinion (assuming both choices are a possibility) to what is the best way to do this - before I go down a deep rabbit hole.
I have different states of a “post” that the user can create. I want there do be different stages available to the user for this post. I want each stage to have a different back ground color.
Should I use Conditional View for each stage ( active, scheduled, Draft, Template ) represented by a button and can I save the choice that was made ( I don’t know how to do that yet ) ?
Should I use a Select View with Blank Containers being the “button” for the choice and save the choice from there? I have a table in DB called “status” with Active, Scheduled, Daft, Template already populated.
If you need to select different statuses, you should use a select view.
If you need the button to display different colors after a selection is made, you need to add a condition view inside the selected blank container of the select view.
Currently, you can’t directly use the system’s provided Button component because the color cannot be customized via parameterized configuration.
However, you can achieve this by developing your own code component. Here is the documentation link:
You can use tools like Cursor to help you complete this; it shouldn’t be difficult. (You would be developing a button component where the input parameters are the color and content, or any other properties you wish to configure.)