• Resolved franwess

    (@franwess)


    Hi there,

    I have a question regarding how this plugin stores its data — In our specific case we need to create repeater fields with the listing functionality for a Name, Surname & e-mail. These fields need to ‘repeat’ to let’s say a 100 times to enable the user to provide us with a list of all e-mail addresses that we need to create for them.

    We need to display the data via GravityView but each repeat(or set of repeats (eg. name, surname, e-mail address) must be stored separately so that we can display that data with GravityView for a user to edit later on.

    The list field native to GravityForms stores entries inside a serialized array in a single entry in the database — we just wanted to find out if this plugin behaves similarly.

    Kind regards
    Francois Wessels

    https://www.ads-software.com/plugins/repeater-add-on-for-gravity-forms/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kodie Grantham

    (@kodiegrantham)

    Hey franwess! My plugin actually does store data in a serialized array much like the list field does.

    The unserialized version of the stored array would look much like this:

    Array(
        [1] => Array(
            [3] => Array(
                [0] => 'value1'
            )
            [4] => Array(
                [0] => 'value1',
                [1] => 'value3'
            )
        ),
        [2] => Array(
            [3] => Array(
                [0] => 'value4'
            )
            [4] => Array(
                [0] => 'value5',
                [1] => 'value6'
            )
        ),
    );

    In the above example, the repeater had 2 fields that were repeated once. The ‘3’ and ‘4’ are the field Ids. The field with the id of ‘4’ in this example had two inputs. (Like the name field)

    Let me know if that helps!

    Thank you!

    Plugin Author Kodie Grantham

    (@kodiegrantham)

    Also note, there may be a slight change in the way the field keys are assigned in the near future. I’m talking about

    [0] => 'value5',
    [1] => 'value6'

    Right now they just start from 0 and increase each field. But in the future I think I may have them set up to assign by field key instead.

    Have you find a way to present data with Gravity view. Please share.
    Thanks
    Iosif

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How the plugin stores data?’ is closed to new replies.