Forums

Label name based on repeater key value

jj135 20 Feb, 2019
I am working on a form that containers a repeater field with an upload field in it. The uploaded files are saved and attached to an email. It was quit a struggle, but it is working.

I do have a question:

I would like the field label of the upload filed(s) to contain a number (1,2,3). I tried this:

Bijlage {var:area_repeater16.key}

But this way the labels starts with a zero ( Bijlage 0) in stead of 'Bijlage 1' ;-)

Is there a way to add one (+1) to this label 'counter' somehow?

Or is there an other way to achieve this?
healyhatman 20 Feb, 2019
Arrays in programming start at 0, and the upload action doesn't handle shortcodes in the files config, so for now the answer is no.
This topic is locked and no more replies can be posted.