Forums

Creating A Loop For Each row In a Data Array

Hi I am wanting to create a loop for each row in an array

Array
(
    [view] => form
    [chronoform] => ticket-booth-public
    [event_id] => 1
    [chronopage] => tickets
    [sectoken] => 680adadb71e386.35010302
    [ticket_data] => Array
        (
            [0] => Array
                (
                    [1] => 1
                )

            [1] => Array
                (
                    [2] => 2
                )

        )

This is how I am storing the data from the field name 

I have the data stored under 

ticket_data

I want to create a loop for each row but i cant seem to call it correctly 

what is the Loop Variable I should be using 

I have tried

{var:ticket_data}

{data:ticket_data}

{data:ticket_data[]}

The result i get is 

[loop69] => Array
        (
            [key] => 1
            [value] => Array
                (
                    [2] => 2
                )

        )

Where would I be going wrong?

Max_admin 4d ago
Answer

The loop variable is shown in the Loop action settings, here is how you can find it:

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.