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.

Pre-render list fields from another form.

  1. Hello,

    I'm using the pre-render filter to get information from Form 1 to populate fields in Form 2. I can get single line text, address fields, and checkboxes, but I'm having trouble getting the list field data to display properly. Can anyone lend a hand?

    Thanks.

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  2. Ok.. making progress, but still can't get the Gravity Forms list data to display properly.. Here is a link to my code utilizing the pre_render filter:

    Here is the raw data contained in one particular entry for this form:

    a:1:{i:0;a:3:{s:7:"Column1";s:8:"ListMed1";s:7:"Column2";s:16:"ListMed1Strength";s:7:"Column3";s:12:"ListMed1Dose";}}

    And here is the data that's displayed on Form 2 when the pre_render filter executes:

    L  L  L,    L  L  L,    L  L  L,    L  L  L,    L  L  L,    L  L  L,

    Here is a link to my code in the pre_render filter:

    http://pastie.org/8044899

    I am passing in the entry_id through the URL when I go to Form 2. Can someone lend a hand and help me parse through this data to get out the valid information? I think my issue might lie with the unserialze() parsing?

    Thanks.

    Posted 11 years ago on Saturday June 15, 2013 | Permalink
  3. When I do a var_dump, for some reason the "list" array is truncated and corrupted??

    array(21) { [0]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "1.3" ["value"]=> string(4) "Andy" } [1]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "1.6" ["value"]=> string(5) "Jesse" } [2]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(1) "2" ["value"]=> string(24) "chirobalancing@gmail.com" } [3]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(1) "3" ["value"]=> string(13) "(888)888-8888" } [4]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "4.3" ["value"]=> string(8) "Saturday" } [5]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "4.6" ["value"]=> string(7) "EarlyAM" } [6]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.1" ["value"]=> string(8) "Headache" } [7]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.2" ["value"]=> string(4) "Achy" } [8]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.3" ["value"]=> string(3) "Gas" } [9]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.4" ["value"]=> string(5) "Tired" } [10]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.5" ["value"]=> string(7) "Fatigue" } [11]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.6" ["value"]=> string(9) "Sore Feet" } [12]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.7" ["value"]=> string(15) "Swollen Bladder" } [13]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.8" ["value"]=> string(8) "Cramping" } [14]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(3) "9.9" ["value"]=> string(10) "Head Spins" } [15]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(2) "12" ["value"]=> string(11) "and@mee.com" } [16]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(2) "13" ["value"]=> string(13) "(000)000-1111" } [17]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(2) "14" ["value"]=> string(13) "(000)000-0122" } [18]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(2) "15" ["value"]=> string(14) "ChiroBalancing" } [19]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(2) "24" ["value"]=> string(25) "1 Prescription Medication" } [20]=> array(3) { ["lead_id"]=> string(3) "554" ["field_number"]=> string(2) "31" ["value"]=> string(200) "a:4:{i:0;a:3:{s:7:"Column1";s:7:"Lipitor";s:7:"Column2";s:4:"10mg";s:7:"Column3";s:9:"1 x a day";}i:1;a:3:{s:7:"Column1";s:6:"Bensin";s:7:"Column2";s:4:"11mg";s:7:"Column3";s:9:"2 x a day";}i:2;a:3:{s" } }

    I notice the final array has (200) characters..

    Can anyone see why this might be truncating?

    Posted 11 years ago on Saturday June 15, 2013 | Permalink
  4. Handling via priority support.

    Posted 11 years ago on Monday June 17, 2013 | Permalink

This topic has been resolved and has been closed to new replies.