I have a Title & a Body text, which work fine, they belong to the same collection and the database works.
However, I would like to add an emoji selection.
Ideally, it would be 3 emojis (pictures) and the user clicks on the one they identify themselves most with.
So far, Iâve tried multiple things: toggle, ratings, etc.
I canât find the best solution to have a picture added to the âmood noteâ.
Also, Iâm struggling to define the collectionâs structure.
There are plenty of options how this could be done
For example:
You create a collection âMood typesâ, properties âMood nameâ and âMood pictureâ. Here different moods are stored (3 records in your case)
You create a collection âMood recordsâ. Properties: relation to User (one user - many records), date, relation to Mood Types (one mood type for a single record, but mood type can relate to many records).
On the screen where user records his/her mood, you create a list of Mood Types with pics. Then you add an action to create new Mood record by clicking on this list. You take user from Logged in User, mood type from Current Mood Type.
Another option: if you have only 3 moods (and you donât plan to add more), you can kind of âhardcodeâ them into the page. Just put 3 pictures there, and add an action to create a Mood Record for each, putting the relevant Mood to some text property inside this record.
NB: I havenât created these specifics setups in the app builder, so some small details could be missing
The problem that I face now, is that if I set the action to Create Mood, I get a double creation.
Yet, I cannot update something I havenât created yet.
Also, is there a way that the selected image gets differentiation from the others?
As of now when I select a picture, I canât see a âselectâ effect