How to render a dynamic number of input fields without using a listview?

So I am trying to implement a form with a dynamic number of input fields (created from the results of a query that provides the field title, type, etc). Normally I would use a ListView for this however the form is within a modal, which itself is within an existing ListView. Since there can't be nested ListViews (I tried also doing this as a table which also broke things) is there an alternative approach that I haven't thought of yet?

Thanks!

Edit: Nested list views are currently live on Cloud and should be available on-prem with version 2.98.2 :slightly_smiling_face:

Hey @r0meboards!

We're actually looking to support nested listviews and should begin rolling the feature out in the near future. In the meantime, though, you can try having the modal component itself exist outside of the listview and be hidden, then you can set a temp state to keep track of the index you're opening the modal from and open the modal with a button in the listview:

Let me know if that works!

1 Like