# \#fori\_loop

**URL:** https://community.silverfin.com/tag/fori-loop/395.md

[Latest](https://community.silverfin.com/latest.md) · [Categories](https://community.silverfin.com/categories.md) · [Tags](https://community.silverfin.com/tags.md)

---

## [CASE: Make fori better UX by introducing a button](https://community.silverfin.com/t/case-make-fori-better-ux-by-introducing-a-button/2588)

<div class="topic-metadata">

**Author:** [@Michiel](https://community.silverfin.com/u/Michiel)\
**Replies:** 2\
**Last updated:** [July 30, 2026, 1:09pm UTC](https://community.silverfin.com/t/case-make-fori-better-ux-by-introducing-a-button/2588 "2026-07-30T13:09:07Z")

</div>

Until now, the fori tag would always show a new empty iteration at the bottom of the list. From now on, you can choose to display a “+” button instead, giving you more control over the user experience in your forms. You …

---

## [Upload files in fori-loop with unique keys](https://community.silverfin.com/t/upload-files-in-fori-loop-with-unique-keys/2681)

<div class="topic-metadata">

**Author:** [@YouriBrouwers](https://community.silverfin.com/u/YouriBrouwers)\
**Replies:** 1\
**Last updated:** [June 12, 2026, 2:49pm UTC](https://community.silverfin.com/t/upload-files-in-fori-loop-with-unique-keys/2681 "2026-06-12T14:49:20Z")

</div>

Hello everyone, I’m having a problem uploading files within the fori loop. We created a fori list where users can add a text comment and upload a file. When a user enters a text comment, everything works fine and the co…

---

## [CASE: unreconciled in fori (account templates)](https://community.silverfin.com/t/case-unreconciled-in-fori-account-templates/2398)

<div class="topic-metadata">

**Author:** [@Romy\_Vermeeren](https://community.silverfin.com/u/Romy_Vermeeren)\
**Replies:** 0\
**Last updated:** [February 2, 2023, 8:55am UTC](https://community.silverfin.com/t/case-unreconciled-in-fori-account-templates/2398 "2023-02-02T08:55:49Z")

</div>

In this case we are going to have a better look at how unreconciled indicators work in the background, and why it is not ideal to have them included in fori-loops. This only applies to Account Templates though. Reconci…

---

## [CASE: use of required in fori](https://community.silverfin.com/t/case-use-of-required-in-fori/2366)

<div class="topic-metadata">

**Author:** [@Romy\_Vermeeren](https://community.silverfin.com/u/Romy_Vermeeren)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 2:06pm UTC](https://community.silverfin.com/t/case-use-of-required-in-fori/2366 "2022-11-25T14:06:13Z")

</div>

For this case, you want to make some inputs in your fori required. Let’s say you want to build an overview of categorized assets and present an opening and closing balance. You have a fori where users can enter a descr…

---

## [CASE: use persisted to hide parts of a loop](https://community.silverfin.com/t/case-use-persisted-to-hide-parts-of-a-loop/1413)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [February 28, 2019, 8:48am UTC](https://community.silverfin.com/t/case-use-persisted-to-hide-parts-of-a-loop/1413 "2019-02-28T08:48:32Z")

</div>

There might be some cases into where your fori-loop creates a whole range of inputs that need to be done, like below: If you are like me, you’ll find the extra loop with all of its fields a little bit too much. I wan…

---

## [CASE: create result tag in each loop](https://community.silverfin.com/t/case-create-result-tag-in-each-loop/1200)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 2\
**Last updated:** [June 20, 2022, 12:20pm UTC](https://community.silverfin.com/t/case-create-result-tag-in-each-loop/1200 "2022-06-20T12:20:38Z")

</div>

Let’s say we import certain data from a client, and we want to display each value of a certain column in a report template for instance: I’ll need to create a result-tag for each loop where data has been inputted. We…

---

## [CASE: group details of current and previous period / year](https://community.silverfin.com/t/case-group-details-of-current-and-previous-period-year/1229)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [October 2, 2018, 11:48am UTC](https://community.silverfin.com/t/case-group-details-of-current-and-previous-period-year/1229 "2018-10-02T11:48:55Z")

</div>

Let’s say we want to build further on this case: but we’ll expand our overview of details on details of the current year AND the previous year (if it exists): How you can access details from a previous period, is e…

---

## [CASE: create fori and group on certain values](https://community.silverfin.com/t/case-create-fori-and-group-on-certain-values/1195)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [September 17, 2018, 9:03am UTC](https://community.silverfin.com/t/case-create-fori-and-group-on-certain-values/1195 "2018-09-17T09:03:06Z")

</div>

Let’s say we import a whole bunch of data through the automatic reconciliation function in a reconciliation template. To make it simple, I’ll import all parts of a car with their expenses from a certain excel-sheet I’ve …

---

## [FYI Table with fori but with minimum amount of rows in output](https://community.silverfin.com/t/fyi-table-with-fori-but-with-minimum-amount-of-rows-in-output/977)

<div class="topic-metadata">

**Author:** [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Replies:** 0\
**Last updated:** [June 7, 2018, 2:41pm UTC](https://community.silverfin.com/t/fyi-table-with-fori-but-with-minimum-amount-of-rows-in-output/977 "2018-06-07T14:41:41Z")

</div>

Hi, I wanted a table with a dynamic amount of rows (in input) but with a certain minimal amount of rows in output. For those who would like to have something similar, this working code could be a starting point: ´´´ {…

---

## [Attachments duplicated in fori](https://community.silverfin.com/t/attachments-duplicated-in-fori/2276)

<div class="topic-metadata">

**Author:** [@ThomasB](https://community.silverfin.com/u/ThomasB)\
**Replies:** 3\
**Last updated:** [April 20, 2022, 11:23am UTC](https://community.silverfin.com/t/attachments-duplicated-in-fori/2276 "2022-04-20T11:23:27Z")

</div>

In our coding (below), when attaching a file under the “custom.some.thing” group in the fori loop, it also shows this in the second selection “custom.some.thingy” file attachment. Is this due to it being a file collecti…

---

## [CASE: how to use a fori-loop?](https://community.silverfin.com/t/case-how-to-use-a-fori-loop/277)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 0\
**Last updated:** [May 24, 2017, 1:04pm UTC](https://community.silverfin.com/t/case-how-to-use-a-fori-loop/277 "2017-05-24T13:04:22Z")

</div>

Pretty important case, because our templates are full of fori-loops. First though: what is a fori loop? Let’s say you want to input a list of all the investments you’ve done. If you create following variable : {% inpu…

---

## [Creating a new comment](https://community.silverfin.com/t/creating-a-new-comment/1434)

<div class="topic-metadata">

**Author:** [@Tine1](https://community.silverfin.com/u/Tine1)\
**Replies:** 1\
**Last updated:** [March 21, 2019, 2:04pm UTC](https://community.silverfin.com/t/creating-a-new-comment/1434 "2019-03-21T14:04:32Z")

</div>

I would like to make a new comment but it doesn’t work when I try it. it works as a detail within an account but it doesn’t work to put it as an template like liquid assets. How do I need to change this to be able to i…

---

## [Stop information being carried forward to next section](https://community.silverfin.com/t/stop-information-being-carried-forward-to-next-section/1381)

<div class="topic-metadata">

**Author:** [@neilmiller](https://community.silverfin.com/u/neilmiller)\
**Replies:** 11\
**Last updated:** [February 14, 2019, 9:19am UTC](https://community.silverfin.com/t/stop-information-being-carried-forward-to-next-section/1381 "2019-02-14T09:19:58Z")

</div>

Hi, I have the below coding for a stock rec I am working on. I am hoping to have the stock sheet in sections, e.g. Raw Materials, Cattle, Pigs (we deal with agricultural clients). I like the layout I have set up but am n…

---

## [Creating a list from a text input](https://community.silverfin.com/t/creating-a-list-from-a-text-input/1285)

<div class="topic-metadata">

**Author:** [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Replies:** 3\
**Last updated:** [November 28, 2018, 12:54pm UTC](https://community.silverfin.com/t/creating-a-list-from-a-text-input/1285 "2018-11-28T12:54:43Z")

</div>

Gentlemen, I have a question, already sought for the answer but I’m perplexed by the result: Code: {% input company.custom.Varia.Onderwerpen as:text placeholder:'varia' %} {% assign str\_Varia\_Onderwerpen = company.cu…

---

## [CASE: how to create a fori-loop within a fori-loop](https://community.silverfin.com/t/case-how-to-create-a-fori-loop-within-a-fori-loop/802)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 6\
**Last updated:** [November 28, 2018, 12:53pm UTC](https://community.silverfin.com/t/case-how-to-create-a-fori-loop-within-a-fori-loop/802 "2018-11-28T12:53:03Z")

</div>

Let’s start with a practical example. Say we want to give in multiple persons, and for each person you want to put in several benefits in kind for that person. To create a fori-loop to put in multiple person, you can us…

---

## [Populating drop down menu with manual inputs](https://community.silverfin.com/t/populating-drop-down-menu-with-manual-inputs/1281)

<div class="topic-metadata">

**Author:** [@Spencer.Posner](https://community.silverfin.com/u/Spencer.Posner)\
**Replies:** 3\
**Last updated:** [November 21, 2018, 7:53pm UTC](https://community.silverfin.com/t/populating-drop-down-menu-with-manual-inputs/1281 "2018-11-21T19:53:17Z")

</div>

The following is code attempting to populate a dropdown menu with the custom inputs made by a user: I get the following liquid error, and the dropdown becomes blank if i edit code to say options:\[array\] Any sugge…

---

## [Foriloop inside a for loop](https://community.silverfin.com/t/foriloop-inside-a-for-loop/1104)

<div class="topic-metadata">

**Author:** [@borjaGonzalez](https://community.silverfin.com/u/borjaGonzalez)\
**Replies:** 4\
**Last updated:** [August 9, 2018, 9:31am UTC](https://community.silverfin.com/t/foriloop-inside-a-for-loop/1104 "2018-08-09T09:31:32Z")

</div>

Hi there I am trying to nest a fori loop inside a for loop (2nd level) with independent variables using the following code: {% for a in keys\_array %} {% fori item in custom\[a.key\] %} |{% input item.description %} {%…

---

## [Aandeelhoudersregister - question](https://community.silverfin.com/t/aandeelhoudersregister-question/1010)

<div class="topic-metadata">

**Author:** [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Replies:** 19\
**Last updated:** [July 31, 2018, 8:04pm UTC](https://community.silverfin.com/t/aandeelhoudersregister-question/1010 "2018-07-31T20:04:03Z")

</div>

Hi there, I’m trying to construct an aandeelhoudersregister for a company in Liquid. I do have a problem with the options that go with the share transactions: if you create (eg) two shareholders and they both have opti…

---

## [Variable amount of custom variables](https://community.silverfin.com/t/variable-amount-of-custom-variables/995)

<div class="topic-metadata">

**Author:** [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Replies:** 2\
**Last updated:** [June 18, 2018, 1:57pm UTC](https://community.silverfin.com/t/variable-amount-of-custom-variables/995 "2018-06-18T13:57:41Z")

</div>

Hi there, I’ve got the following issue: in a template that I’m making (‘aandeelhoudersregister’), a first table is created where a variable amount of shareholders are defined (for example 4). On the basis of this inform…

---

## [Fori with pre-defined values](https://community.silverfin.com/t/fori-with-pre-defined-values/937)

<div class="topic-metadata">

**Author:** [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Replies:** 4\
**Last updated:** [May 30, 2018, 7:38am UTC](https://community.silverfin.com/t/fori-with-pre-defined-values/937 "2018-05-30T07:38:34Z")

</div>

Hi, Is it possible to add certain values in an input field in addition to certain pre-defined values (from an array)? Example: {% assign str\_ExiWetVer = ‘Christophe|Delphine’ %} {% assign arr\_ExiWetVer = str\_ExiWetVe…

---

## [CASE: add multiple attachments](https://community.silverfin.com/t/case-add-multiple-attachments/651)

<div class="topic-metadata">

**Author:** [@sven](https://community.silverfin.com/u/sven)\
**Replies:** 11\
**Last updated:** [April 24, 2018, 10:59am UTC](https://community.silverfin.com/t/case-add-multiple-attachments/651 "2018-04-24T10:59:41Z")

</div>

Before in Silverfin, you were able to add only one attachment with following code : {% input custom.acc.annex as:file %} Which gives this : And you could only add one file : :mega: Now it’s possible to add more t…

---

## [Two table formats in reconciliation template](https://community.silverfin.com/t/two-table-formats-in-reconciliation-template/757)

<div class="topic-metadata">

**Author:** [@Ugis](https://community.silverfin.com/u/Ugis)\
**Replies:** 2\
**Last updated:** [March 23, 2018, 3:36pm UTC](https://community.silverfin.com/t/two-table-formats-in-reconciliation-template/757 "2018-03-23T15:36:15Z")

</div>

Hi, I have two tables one next to another with different layout. When period is unlocked template looks fine however when period is locked second table definition is displayed as text and table structure is broken. I …

---

## [Template huurinkomsten](https://community.silverfin.com/t/template-huurinkomsten/535)

<div class="topic-metadata">

**Author:** [@Andrew](https://community.silverfin.com/u/Andrew)\
**Replies:** 16\
**Last updated:** [March 19, 2018, 10:39am UTC](https://community.silverfin.com/t/template-huurinkomsten/535 "2018-03-19T10:39:42Z")

</div>

In the template ‘huurinkomsten’ you can just input 1 amount of rent. Is it possible to add another input field if you have changing rentamounts ? Or give me the code so I can change it myself. Ex. Huur januari - juni 2…

---

## [Clear nested fori-loops all at once](https://community.silverfin.com/t/clear-nested-fori-loops-all-at-once/668)

<div class="topic-metadata">

**Author:** [@b.dalle](https://community.silverfin.com/u/b.dalle)\
**Replies:** 3\
**Last updated:** [February 23, 2018, 9:20am UTC](https://community.silverfin.com/t/clear-nested-fori-loops-all-at-once/668 "2018-02-23T09:20:32Z")

</div>

Hello, In a template I noticed that I cannot clear the text that has been inputted for all fori-loops all at once. Is there somehow a way to link these two fori-loops so I would be able to clear the entire text of both…

---

## [Counting number of loops](https://community.silverfin.com/t/counting-number-of-loops/556)

<div class="topic-metadata">

**Author:** [@b.dalle](https://community.silverfin.com/u/b.dalle)\
**Replies:** 4\
**Last updated:** [February 21, 2018, 7:11am UTC](https://community.silverfin.com/t/counting-number-of-loops/556 "2018-02-21T07:11:07Z")

</div>

Hello again, I have some trouble with the next code: Bestuurder{% if bestuurdersaantal \> 1 %}s{% endif %}: {% assign bestuurdersaantal = 0 %} {% fori x in custom.bestuurders %} {% input x.persoon %}{% assign bestuurder…

---

## [Ifi-statement depending on fori-statement](https://community.silverfin.com/t/ifi-statement-depending-on-fori-statement/565)

<div class="topic-metadata">

**Author:** [@Cedric](https://community.silverfin.com/u/Cedric)\
**Replies:** 1\
**Last updated:** [January 5, 2018, 1:57pm UTC](https://community.silverfin.com/t/ifi-statement-depending-on-fori-statement/565 "2018-01-05T13:57:57Z")

</div>

Hi, I’m having some trouble with my ifi-statement in the code below. With the fori statement, nothing will be printed when there’s no content. But in the code below I have a first row that could be seen as title row, t…

---

## [Foriloops with multiple rows](https://community.silverfin.com/t/foriloops-with-multiple-rows/550)

<div class="topic-metadata">

**Author:** [@Cedric](https://community.silverfin.com/u/Cedric)\
**Replies:** 2\
**Last updated:** [December 21, 2017, 9:30am UTC](https://community.silverfin.com/t/foriloops-with-multiple-rows/550 "2017-12-21T09:30:35Z")

</div>

I’m having some problems with foriloop. Clearly I can’t use this to create two new lines at a time, but it’s really what it needs to do. Is there any other possibility? This is what I get now. I want to create a new …

---

## [Result tag in foriloop?](https://community.silverfin.com/t/result-tag-in-foriloop/546)

<div class="topic-metadata">

**Author:** [@Thijs](https://community.silverfin.com/u/Thijs)\
**Replies:** 2\
**Last updated:** [December 20, 2017, 1:01pm UTC](https://community.silverfin.com/t/result-tag-in-foriloop/546 "2017-12-20T13:01:44Z")

</div>

How can I use a result tag in a foriloop? Reconciliation template code: {% fori overeenstemming in custom.overeenstemmingen %} {% input overeenstemming.bedrijfsleider %} {% assign $1 = 0 %} {% assign $2 = 0 %} {% ca…

---

## [Making totals with multiple foriloops](https://community.silverfin.com/t/making-totals-with-multiple-foriloops/522)

<div class="topic-metadata">

**Author:** [@Thijs](https://community.silverfin.com/u/Thijs)\
**Replies:** 2\
**Last updated:** [December 5, 2017, 9:38am UTC](https://community.silverfin.com/t/making-totals-with-multiple-foriloops/522 "2017-12-05T09:38:20Z")

</div>

How can I make a total of wederbelegging.bedrag? When I use registers, the totals appears also in the next (first) foriloop. Code: {% fori meerwaarde in custom.meerwaardes %} |\*\*{% input meerwaarde.omschrijving %}\*\*||\<…

---

## [Nested fori-loops](https://community.silverfin.com/t/nested-fori-loops/380)

<div class="topic-metadata">

**Author:** [@DirkTim](https://community.silverfin.com/u/DirkTim)\
**Replies:** 7\
**Last updated:** [November 23, 2017, 3:57pm UTC](https://community.silverfin.com/t/nested-fori-loops/380 "2017-11-23T15:57:41Z")

</div>

Hello, I’m working on a new template which requires two “fori” loops nested within one other. What I need is something like a “Loans and leasings” template but where I can add multiple loans on the same account. The…

[Next page](https://community.silverfin.com/tag/fori-loop/395.md?match_all_tags=true&page=1&tags%5B%5D=fori_loop)
