I am trying to generate a set of menu items in a slidebar menu using a custom state like this (imagine a full set of these which builds up the list at each step depending on some checkbox enabled or not in the database for a given Data Type (a Venue in this case).
The only stumbling block I have to this (I think) it the need for a line break before each item I add. I have done some searching around the forum but not seen anything that works for a custom state. Any ideas on how I can do this, or another workaround to achieve the same?
Thanks for that, and apologies for the delay in responding, I had been called away to deal with something else and so this inevitably got pushed to the backburner for a bit.
Your mock-up is 90% to what I need! Thanks for that.
The only problem with it is that it doesn’t preserve the order of the menu items as I need them. For example if item 3 is checked and then I add item 1, the order is item 3, then item 1 (see image), whereas I need to preserve the order of the menu items just changing whether they appear or not according to the checkboxes.
I think you would just need to do a bit more work. Make it a data type instead of just a text element and add a sort order # to it. Then have them add it with a save button at the end that will go through and add it to the list in the correct order based on the sort order #.
I understand your point about not needing to clear the list, but how do I build up the list with the sort order. So for example in the first instance I would want to add an entry “Search / 1” when Search is checked. But I don’t know how this would be done. See image. I feel I am just missing this one step and I can finish it. Thanks again