• 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)
  • Thread Starter daddiodickerson

    (@daddiodickerson)

    I had to change the output page to show all fields at the moment. The page with the problem shows no input field between the label and the description.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @daddiodickerson

    What were the issues you encountered before showing all fields?

    From what I see this is a user registration form. I wouldn’t recommend using Pods for this purpose unless you are very experiences with PHP and security.

    Cheers, Jory

    Plugin Support Paul Clark

    (@pdclark)

    Thread Starter daddiodickerson

    (@daddiodickerson)

    Its not really registering new users, it is gathering information on contestants for a beauty pageant. The contestants are also not creating posts, just filling in their info. Is wp-user-frontend for that type of situation?

    Everything else works great. I have been able to create the proper documentation for each contestant and generate the PDF for the judges from the data entered by the contestants. The only thing is the pods form() has not worked right.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @daddiodickerson

    In that case, see my first question 🙂
    What were the issues you encountered before showing all fields?

    Cheers, Jory

    I found the problem. It was no more than a misspelling of a field name. User error.

    Thanks for the help.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @daddiod

    No problem, good luck with your project!

    Cheers, Jory

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.