• Resolved wasiebold

    (@wasiebold)


    Here’s what I would like to do. Create a CF7 form and map to CPT (no problem, thanks to your plugin).

    Create a different CF7 form and map to a different CPT (no problem, again).

    Display the custom fields from the first CPT in the second (in addition to the custom fields native to the second).

    Use case:
    1). A student completes a self-evaluation of internship using CF7 front-end. On submit, the CF7 form creates a new instance of the CPT Student Evaluation. Meta data saved & displayed in the CPT upon rendering

    2). An employer separately completes an evaluation of the same student -intern using a different CF7 form. On submit, the CF7 form creates a new instance of the CPT Employer Evaluation. Meta data saved and displayed in the CPT upon rendering.

    3). Field values from both student evaluation and employer evaluation merged and displayed together in the employer evaluation CPT or in a third CPT (could be named combined evaluation).

    I am thinking that getting the specific post ID from each CPT is the key, but not sure how that would work – can I use Post by CF7 Form to link these CPTs?

    This question isn’t about something that is not working, but instead about how to extend the use of Post My CF7 into another scenario.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    An employer separately completes an evaluation of the same student

    the students are pre-registered on the site? or does the evaluator fill his form once the student has submitted theirs?

    Either way, you need to associate the 2 posts using the student unique identifier.

    for example,

    – if the student is a user on the site (has an account), make sure the post saved for student forms is author’ed by the student. When the evaluator submits
    their post, save the corresponding sutdent user ID in the post meta to be able to load the student post meta data into the evaluator post.

    – similarly you could use the sudent email id as a post meta field and use that to search post with such a meta value when displaying the evaluator post.

    hope that makes sense.

    Thread Starter wasiebold

    (@wasiebold)

    Yes – this makes complete sense. I suspected it was all about timing – students registered with an account –> saving form while logged in. Later, employer submits eval form with field containing student unique identifier as meta.

    Thank you for the time and effort.

    Bill

    Plugin Author Aurovrata Venet

    (@aurovrata)

    welcome

    PS: I am planning shortly a tutorial on this plugin, once I have completed the next major v5. One such tutorial will be ona dvanced cases of form mapping, from 1 form to multiple posts. I will also do one on 2 forms to 1 post. A scenario you could explore for this problem of yours, instead of 1 form to each post.

    Thread Starter wasiebold

    (@wasiebold)

    Looking forward to both the update and the tutorials. Yes, mapping two forms to one post would be very handy.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘use custom fields from 1 CPT in another’ is closed to new replies.