• Nitrat

    (@nitrat)


    Hello!
    How to get the values from enhansed multi-colon list (with + section)? 3 rows, 3 columns
    This code don’t work
    ` $dopu1 = $form_data[‘list’][334][0][‘Column 1’];
    $dopu1s = $form_data[‘list’][334][0][‘Column 2’];
    $dopu1r = $form_data[‘list’][334][0][‘Column 3’];

    Thanks!

    • This topic was modified 7 years ago by Nitrat.
    • This topic was modified 7 years ago by Nitrat.
    • This topic was modified 7 years ago by Nitrat.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    The code you’ve provided will work on a Multi Column List field with an ID of 334 and a column name of “Column 1”, “Column 2” and “Column 3”. If that’s not the case for your form, you’ll need to adjust it to suit.

    You can view the $form_data array with the ?data=1 helper parameter. This will assist you in accessing the information you require.

    Thread Starter Nitrat

    (@nitrat)

    Parameter &data=1 did not let anything go.
    I have 3 rows & 3 columns:
    Surname Age Experience
    Smith 34 4
    Bond 56 23
    Wood 45 12

    Multi Column List field with an ID of 334 and this code for 1 row don’t work
    $dopu1 = $form_data[‘list][334][0][‘Column 1’];
    $dopu1s = $form_data[‘list’][334][0][‘Column 2’];
    $dopu1r = $form_data[‘list’][334][0][‘Column 3’];

    What’s wrong?

    • This reply was modified 7 years ago by Nitrat.
    • This reply was modified 7 years ago by Nitrat.
    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Please carefully read and follow the documentation I’ve linked to: &data=1 is not the correct syntax if you’ve got permalinks enabled on your website (most sites do).

    I’ve also mentioned that the access keys are the column names. Did you try $form_data['list'][334][0]['Surname']?

    Finally, I recommend you review basic PHP tutorials to better understand how arrays work. The development documentation, and any support related to custom templates, is written specifically for developers with a solid understanding of how PHP works.

    Thread Starter Nitrat

    (@nitrat)

    Only now it dawned on me that ‘Column 1’ is the name of my column!))
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enhansed list’ is closed to new replies.