PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

2 page form, list displays "array"

  1. I implemented the 2 Page form example and the pre_render hook where the fields from Page 1 are displayed in an HTML field on the 2nd page (like the last example on this page: )

    However, one of my fields is a "List".

    On the 2nd page of the form, everything displays correctly except the List - instead of the values it simply displays the word "Array".

    Can someone point me in the right direction to get the list field contents to show up correctly on Page 2 of the form?

    Posted 9 years ago on Friday December 21, 2012 | Permalink
  2. Can you provide a link to the page on your site where we can see this form, and also post the code you are using to or Thank you.

    Posted 9 years ago on Friday December 21, 2012 | Permalink
  3. Hi Chris,

    Sure. The link on my website is:

    The Pastie link is:

    If you fill out the information on Page 1 of the form then click Next, you'll see the info displayed in a HTML field. The fields for the "List" however, are not displayed and simply the word Array is displayed on Page 2 of the form.

    It's a formatting question I think.. How do I get the contents of the List field on Page 1 to display on Page 2?


    Posted 9 years ago on Friday December 21, 2012 | Permalink
  4. It does not look like this is related to the pre_render at all. How are you displaying the information on page 2? Looks like you probably need to dump the $_POST or $entry array (I can't tell how you're getting the information.) That will show you how to access to values in your list field. Your display is showing that it's an array, so you will need to loop through that array just like you looped through all the other arrays. That list field will be an array within and array. If you var_dump or print_r the $_POST, you should be able to see how to access the list values.

    Posted 9 years ago on Saturday December 22, 2012 | Permalink