• Resolved dklamie

    (@dklamie)


    I’m trying to create a chart containing unique information for each user (created via default WP user registration)

    I’ve created custom post type and required fields:

    POD: “client_chart”
    Inside the pod are FIELDS :?“admission_date” – field type “date” AND “progress” – field type “text”

    I want the user to fill out the form and be able to edit their own entry?later on in the same form (only one entry per user) for those two fields inside a form. By user I mean users created with the default WP user fields that are part of WordPress. If the entry is created in client_chart pod I would like the fields to be populated in the form so the user can edit them.

    So far I have the form shortcode that I embedd on the desired page:
    [pods-form name=”client_chart” label=”Update chart”? title=”Client chart” fields=”admission_date,progress”]

    After filling the form, I get separate entries in “client_chart” post for each time the form was filled- Also, they do not have a name, only the fields the user entered are filled (“admission_date” and “progress”).?

    My questions are:
    Is this the right?way for creating the form / fields??

    How can allow?user? that?filled the form to create only one unique entry in the client_chart that?is connected with his profile?

    Is it possible to populate the form with already filled fields from “client_chart” pod so the user can edit them?

    Should I do it by extending existing user pods instead and adding those two fields (mind you I have a lot of fields, this two were listed for example only)?

Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    There isn’t very much documentation available:
    https://docs.pods.io/using-forms-for-input/
    You’ll need to add the title fields. etc. in the shortcode as well.

    Keep in mind that I’d only advice the usage of PodsForm for more advanced PHP developers. If you are uncomfortable with PHP I’d advice to use Gravity Forms.

    Cheers, Jory

Viewing 1 replies (of 1 total)
  • The topic ‘Connecting custom post type with user that created unique custom pod post entry’ is closed to new replies.