• Resolved daddiodickerson

    (@daddiodickerson)


    When using form() to display a front end form, the form does not render correctly if there are a large number of fields included in the $field array.

    The Code

    $pods = pods( 'contestant', $contestant );
    // Specify which fields to show.
    $fields = [
    'first_name',
    'last_name',
    'address_line_1',
    'address_line_2',
    'city',
    'state',
    'zip',
    'phone',
    'photograph',
    'c_title',
    'instagram',
    'age',
    'p_titleu',
    'talent',
    'email',
    'education',
    'professional_objective',
    'honors_and_achievements',
    'leadership_positions',
    'employment_experience',
    'special_skills_and_activities',
    'q1',
    'q2',
    'q3',
    'q4',
    'q5',
    ];
    // Output the form.
    $out = $pods->form( $fields );
    return $out;

    Page produced is here
    Output Page

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘front end form will not display properly with a large number of $fields’ is closed to new replies.