How to save a list of input inside a repeating group?

Hi everyone,

I’m building a conditional form (branching form) inside of which I collect data that I use to populate dynamic fields inside a pdf. At some point I’m asking the user 3 information:

  1. Value
  2. Beneficiary
  3. Operation’s number

My user need to be able to submit several “Value”, “Beneficiary” and “Operation’s number” so I created a repeating group inside of which I put my 3 Inputs (value, beneficiary and operation’s number).

The type of content is “Saved pdf” and the data source “Search for saved pdf” without constraints. The input value content format is decimal and the others are text.

In the database I created a data type called “Saved pdf” with “Value” as a list of numbers, “Beneficiary” as a list of text and “Operation’s number” as a list of text.

When I click the “valider” button I would like to record the data (as a list) inside my database and use it later to populate pdf fields. I tried it with the “Make changes to a list of things” in my workflow but it doesn’t work an I can’t figure out what I’m doing wrong.

Any idea ? Thanks in advance.

Hello @baroud8812

Some base concepts here:

  • searching looks for entries in the dB
  • using inputs in an entry within a repeating group could mean that (1) the entry exists, and that (2) the input may be there to pass information down to the entry

I suspect the above is not your use case.

I am guessing that you want to use inputs in a repeating group to dynamically add more inputs as needed.

If the latter is the case, the end-result that you are looking for is intricate to implement as it can go in many different ways. But it can be done.

However, the easiest way would be to just manually add the inputs to your page even if it means to have many of them. There are ways to build a UI that shows batches of them at a time where you can click “next” after you are done with the current one batch so that the end result is something like 1of4, 2of4, 3of4 … etc

Hope the above makes some sense.

Best of luck with your project! :smiley: