Forums

Can‘t loop through the array because of replacer as key

teazmo 29 Dec, 2015
Hi guys,
The multiplier-function works great. But I‘d like to display the first element, so people can start typing right away.
If I leave the display of the first element in the multiplier container on and I look at the debugger after submitting the form, the array containing the elements starts with the replacer ('__N__') and not [0]. Why is that and how can I change that, so the array starts with [0] ?


Array
(
    [__N__] => Array
        (
            [gender] => Frau
            [name] => silke
            [info] => Array
                (
                    [0] => Betriebsrat
                )

        )

    [0] => Array
        (
            [gender] => Herr
            [name] => timo
            [info] => Array
                (
                    [0] => Gewerkschaftsmitglied
                )

        )

)


Thanks,

Timo
GreyHead 29 Dec, 2015
Hi Timo,

I suggest that you set Hide first and Disable first to Yes and set Start count to 1

Bob
This topic is locked and no more replies can be posted.