Can a list have subheaders within the list?

Can I add subheaders to a list, to separate types of things?

For example:

MEATS

  • Tuna
  • Chicken
  • Ham

VEGETABLES

  • Corn
  • Potatoes
  • Carrots

PASTA

  • Spaghetti
  • Macaroni
  • Lasagna

I want to put checkboxes next to the items, but not the subheaders.

You could have a separate collection of headings with a relationship to the items. Then have a list of items within the headings. current heading > items, if that makes sense. List within a custom list.

2 Likes

Thanks for your quick reply. But I’m a little confused.

I created a collection called “Items" which lists individual grocery items.

I also created a collection called “Headings” which lists grocery categories like “hygiene” and “canned meats”.

In the Headings collection, I added a relationship with the Items collection.

But now I’m lost. I haven’t added a screen yet to display my shopping list. Is that the next step, or do I need to do something else first? I’m not sure how I can link the individual items with the headings.

Hi, please see the below video, it might explain a bit better-

3 Likes

Ok, first, this was super helpful. I had to watch your video at slow speed, but I copied every step and it worked perfectly. Thank you!

But now I’m having a problem. I deleted the screen and started rebuilding it from scratch (just for practice). And now I can’t seem to get the Groceries list into the Headings list. I’ve dragged the second list into the first at least a dozen times, but it keeps ending up as a component on the main screen, rather than as a component of the first list.

Is there some special trick to dragging a custom list into another custom list?

In your video, it looked like you created the first custom list, then selected and pulled down a rectangle which “contained” that first list, then clicked outside the screen, then clicked inside the rectangle again, then dragged a new custom list into that rectangle. Is that correct?

What am I doing wrong?

Hi Mike sorry for the delay in replying! You might have solved this by now but I’ll reply anyway.

Sometimes you need to be dragging the top left corner of the list to be inside the other list. Make sure you are dragging and not using arrow keys. If this all fails, try resizing the second list to be very small, and then drag it into the other list with the mouse. You can then resize the inner list later, once it has correctly become part of the first list.

1 Like

Thanks for getting back to me. Yea, I did finally figure it out, mostly by repeatedly failing and then finally accidentally dropping the second list in precisely the right spot. After that I was able to do it correctly repeatedly.

This seems like a hacky way to do this though. It seems like sublists, or at least a list with multiple category headers, would be a pretty common need. Nevertheless, it works beautifully now.

I do have a second question though. I posted it as its own topic in this forum, so maybe you could comment on it there. My question is: Is it possible to add a button to clear all checked boxes in a checklist? I know all boxes will be cleared as soon as the user leaves that screen, but a “clear all” button seems like a logical UI feature on any checklist.

Thanks so much!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.