Skip Navigation

[Closed] autopopulate select field with users from a specific user role + show submisions

This support ticket is created 4 years, 1 month 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#2247279
Screen Shot 2021-12-17 at 12.47.55 PM.png
Screen Shot 2021-12-17 at 12.48.04 PM.png

Tell us what you are trying to do?
I need to add auto-populating select fields to several forms on the site (currently in dev and all in the backend) and to show the CPT submissions that apply to a specific user.
Essentially I am creating a form that allows user type A to submit a transcript (CPT). There are 2 transcripts types - one for education and one for corporate. I currently have those set up as taxonomies under Transcript CPT. Both education and corporate need to have their own form.

The education form needs to have the following custom fields:
1. Select user from "provider" (type A) user role
2. Select user from "student"(type B) user role
3. Select from user B's classes (auto-populating with taxonomies under School> "School Name")
4. Upload a file.

The corporate one is simpler with just the provider and "client" user role C so I'll just copy the same process as above.

I then need to show all the submissions for a specific user (student or client) when that user is logged in.
So they can view all the transcripts that were uploaded for them.

Is there any documentation that you are following?
No, couldn't find anything similar in the support threads

Is there a similar example that we can see?
No, the only one I have is my clients old backend which is private access only and I can't share. took a screenshot and attached below.

What is the link to your site?
linked in form - all of this will be in the backend and for admin only

#2248461

Hello,

Please elaborate the questions with more details:
How do you setup "provider" and "student"? are they custom post types or custom user role?
How do you setup the "School"? is it a custom taxonomy, registered to post type "student"?
How do you setup the "education" post type? is there relationship between "education" and "provider" + "student"?

The topic ‘[Closed] autopopulate select field with users from a specific user role + show submisions’ is closed to new replies.