Hi! I have an emotional tracker where a user can make a note about their emotions at some specific moment and track them.
I have a document "cases" with the multiple field "emotionsRef" List<Doc Reference(emotions)>
I want the user to be able to create a "case", select the emotions they feel through Choice Chips, upon clicking "Save" button to create a new "case" and save into this "case" the emotions selected in Choice Chips.
I have on my page the Chips, the button "Save". On "Save" button I have the following Actions:
Create Document
Set fields:
title
created_at
emotionsRef
title and created_at can be saved with mo problems. But I can't make the right settings for emotionsRef. When I open the dialogue I see:
List update type: Set Value
Then I select the the new menu "Set Variable": Widget State - ChoiceChipsEmo (List <String>) - Available Options. And then in the selector I see "List Contains Item" which I can't select. I see the options "Map List Items", "Filter List Items", "First Few Items", "Sort List Items". But I just want to save in the field emotionsRef the options selected in ChoiceChipsEmo widget. How can I do it?
Please help me to understand how to do it. Thank you!