PricingBlog

Repeat over nested list - no data

  • needtheanswers-1287442724878028851

    needtheanswers

    1 year ago

    Is it not possible to repeat over a nested list?
    I have a nav with nav options and each nav can hav sub-options. I repeat the nav options based on a variable. When I want to repeat over the nested list (suboptions) there is no data. There was a similar issue a few days ago but maybe I´m just doing something wrong here?
    1287442725288939520-image.png
    1287442725662228521-image.png
  • 1287442948878897182-image.png
  • lucasg-1287443078868635722

    Lucas G

    1 year ago

    Hmm might be a bug? It is definitely possible
  • You need to set a new repeat though, I’m not sure I see it
  • Create a new repeat that repeats over the item
  • needtheanswers-1287444847149711362

    needtheanswers

    1 year ago

    I already repeat over the nav options now I´d like to repeat over the suboptions that are nested in the nav options but it´s not possible to do so. If I just create a new repeat it won´t be linked to my nav options
  • needtheanswers-1287446075522809867

    needtheanswers

    1 year ago

    I posted this in the bugs channel. Thanks for your help @Lucas G 🙂
  • lucasg-1287446573856460810

    Lucas G

    1 year ago

    No you need to create another repeat inside the first one
  • Two different repeat setups
  • 844842566401654815-@needtheanswers
    lucasg-1287447548897792080

    Lucas G

    1 year ago

    Ah is this where you are trying to set up the second repeat?
  • Yeah there should be an item option in there
  • needtheanswers-1287447950598995988

    needtheanswers

    1 year ago

    Yes, that´s what I meant.. might really be a bug then.
  • needtheanswers-1287448394041921638

    needtheanswers

    1 year ago

    Because I can only create a "fresh" repeat
  • gazinhio-1287635867288207400

    gazinhio

    1 year ago

    The reason is that Toddle takes the properties from the very first object in the array and if it's empty then it won't provide the <item> for it. To develop your nested repeat formula, make the suboptions property of the first element in the main array temporarily have at least one element eg add one item to the suboptions array of the first element in the main array. Once you've developed the formula, delete that temporary element.
    👍3
  • needtheanswers-1287687383738875964

    needtheanswers

    1 year ago

    @ Thank you so much! This worked 🙏
    👍1
    🙌1
  • lucasg-1287781760230494340

    Lucas G

    1 year ago

    That shouldn’t be needed 🤔 there was an update recently that made it so repeat items would always show
  • when I clicked on the project you shared I could see repeat items so I thought you had figured it out
  • gazinhio-1287802036821299320

    gazinhio

    1 year ago

    That would be great but I haven't experienced any changes to indicate that it works differently.
  • needtheanswers-1287808988481720401

    needtheanswers

    1 year ago

    Yes, in the bugs channel someone had another solution on how to make this work. I do prefer @´s solution tho because I didn´t have to change my setup.
  • lucasg-1287809342975774730

    Lucas G

    1 year ago

    No no you shouldn’t have to change it
  • That’s just how it should work
  • For me, repeat items show up even if it’s empty 🤔
  • needtheanswers-1287829393447583856

    needtheanswers

    1 year ago

    @Lucas G Hmm that´s really strange then
  • lucasg-1287837765438017536

    Lucas G

    1 year ago

    But I also saw them in your project when I opened it
  • So did Tom
  • needtheanswers-1287847889262874707

    needtheanswers

    1 year ago

    I really don´t know what the problem was yesterday but I´ve checked again now and they are there