Adding a flag multiple times to a list in a table

Created on 21 April 2024, 8 months ago
Updated 23 April 2024, 8 months ago

I want registered users to be able to create lists of food for adventures.

But i'm looking at how it is possible for them to add a single food item (node with flag on it) multiple times to a list?

This is because I have nutritional info on the food item (node) and I want that to be added up (sum) in that column.

So if they add a banana, i want them to be able to add a second or third banana to that list and it then totals the carbs from a banana in their list and they can see the total carbs they will get from that.

I know how to do all of this but can't seem to figure out how to add a single food item flag to a list multiple times.

πŸ’¬ Support request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom effortDee

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @effortDee
  • πŸ‡ΈπŸ‡ͺSweden sl27257 Stockholm

    Hi,

    thank you for your support request!

    I think that I understand what you are after. However I have no quick solution, but only some ideas on how to solve it. What comes to my mind is to add some extra fields somewhere. Let me try to play with that idea!

    BR

    /Thomas

  • πŸ‡¬πŸ‡§United Kingdom effortDee

    Hi Thomas,

    Thanks so much for looking in to this!

    I will have a play too to see if i can work something out that may already exist but not be obvious.

  • πŸ‡ΈπŸ‡ͺSweden sl27257 Stockholm

    Hi,

    I think (first analysis!) that you currently can add a field to every flag_list someone creates. That can of course be done, but it is not what you want. You want additional fields to be copied from your template flag. And that is currently not happening.

    Can you check, please, if you manually add a field like "Count" to a flag_list that someone has created will solve your problem? If so I will check how to fix that the extra field are not copied from the template flag.

    BR

    /Thomas

Production build 0.71.5 2024