Forum Academy Marketplace Showcase Pricing Features

Multiselect button how?

Hello bubblers,

I’d like to ask how to do something like this. Users can select their topics and save it?

1 Like

I’d approach it by using states.
On clicking on any of the topics, it gets added to a state called selectedTopics (of type List of Topics) of the parent group.

Condition on the topic labels → turn Blue if the parent group’s selectedTopics contains this Topic.

Once the user selects some Topics and clicks ‘Save’, the list of topics from the selectedTopics state are set to the corresponding thing in the Database.
When 'Save' is clicked -> make changes to current User -> Topics : set list : parentGroup's selectedTopics

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