Dear ESRI Community
I am trying to build an application with nested repeats and display the repeats as pages. The issue I am having is that when I run my application, the first page is fine however subsequent pages are always blank. I have attached a simple example. Can anyone assist please?
Regards, Damian
Hi Damian,
Nested repeats or groups cannot be pages. The 'field-list' does not work like a page break, but rather 'everything within this geoup/repeat is 1 page', which includes any nested groups or repeats.
Thank you for your response James. Is there any alternative way that you can think of to achieve the same or similar functionality that I am after, i.e. entering the parent record on the first page and entering the child (i.e. related) records on the second page?
Wrap the repeat in a group and give that group field-list.
Thanks Doug, I tried wrapping my nested repeats in various grouping configurations, all without success. Is it possible you could show me a basic example?
Do you mean you want the first repeat on the page 1 and the nested on page 2? I do not think you can do that as the repeat wrapper would not make any sense then. I do see it blanking out like you said. Not sure what you are trying to do.
I did see you using field-list for the repeat but I do not think that works. Only groups use that I think.
I do have a form with a nested repeat and pages but in mine the first repeat bar and header is on every single page. It can look a little weird that way but it does help keep track on where the user is.
Maybe you can have 1 form per station?
Sorry I could not help more.
That is exactly what I want to do - the first repeat on page 1 and the nested repeat on page 2. And you can use field-list on repeats, see here (scroll to bottom, last paragraph).
The application I'm working on actually requires 3 nested repeats. The biggest issue I have is that with 3 nested repeats you end up with 3 record navigation controls at the bottom of the of the Survey123 form (see screen grab below). Any more than two record navigators becomes too confusing for the user. If I could turn each nested repeat into a separate page it would avoid this issue. Yes I could create a separate survey for each individual station/site and have 2 nested repeats however this is not ideal.
The only other option I can think of is to have customised text for the record navigators, e.g. "Site 1 of 1", "Trap 1 of 1", "Capture 1 of 1" however there doesn't appear to be any option to do this either.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.