Skip Navigation

[Closed] Create related child post by connecting post in Toolset Forms

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 3 voices.

Last updated by Minesh 3 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2170629

Hello!

I'm using Toolset for a website to register study results. One post type is "student profile", where information about the student is stored. Then there's a post type "exams", a list of all the exams within the organisation. There's a relationship form on the student profile pages that can connect an exam to a student, that works well.

But now I want to store the exam result somewhere, and I'm not sure what's the best approach for this. I can't save it within the 'exam' post, since this post is connected to other students as well. I'm thinking about creating a new post type "exam results", that connects to the exam with an identifier for the student and the result of the exam.

For this I would need to automatically create an "exam result" post and connect this to the exam while adding it to the student profile with the existing Toolset form. Is this the best way to set this up? Is there a native Toolset function that would be able to do this, or would this require custom coding? Any input is welcome. 🙂

Thanks in advance!

#2171077

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I think the solution should be simpler and just require modifying what you already have.

If you have a many-to-many relationship between student profiles and exams then you can add custom fields to the relationship, which is where you can store the result.

So say that Jens is connected to Maths and to Chemistry. You can add a value to a "result" field separately for each of these, e.g. 82% for Maths and 79% for Chemistry (obviously, Chemistry is harder).

Separate scores for each student-exam combination.

Depending on your workflow you may need a form to edit the existing relationship to add the result data if it isn't available at the time you connect the student to an exam.

Check the available docs: https://toolset.com/related-lesson/post-relationships/

#2171287

Hello Nigel,

That's brilliant! Thank you, exactly what I needed.

Now I want to filter the exams in two views, one by the intermediary select field value 'passed' and the other 'not-passed' as to see which exams are still unfinished for a specific student. Reading other support questions I believe I can't filter the exams based on a value stored within the relationship. Is this still correct? Or might there be another solution here?

https://toolset.com/forums/topic/how-to-filter-a-view-with-a-value-from-an-intermediary-post-type-custom-field/

Thanks,
Tim

#2171611

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Do you mean you want to display filtered "student profile" based on the intermediary select field value 'passed' with one view and with another view, you want to list "exams" intermediary select field value 'not-passed' ,

The topic ‘[Closed] Create related child post by connecting post in Toolset Forms’ is closed to new replies.