Skip Navigation

[Resolved] Creating a list of custom post types in a form based on a custom field ID

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

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 2 replies, has 2 voices.

Last updated by joshH 4 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1432153

Tell us what you are trying to do?
I have a bunch of users (custom post type {team-member}). I need to filter the team members by a custom field [account-id] and make those that match the account-id appear as check boxes in a form. If I check a given user's box, I need the value for a repeatable custom field [team-id] to be populated with the team ID that's already been generated for the custom post "team".

Is there any documentation that you are following?
Not really, I couldn't find what I was looking for.

Is there a similar example that we can see?
Not currently, no.

What is the link to your site?
hidden link

#1432373

Hello,

There isn't such kind of built-in feature within Toolset Forms plugin, it needs custom codes, for example, when user check an option in field "account-id", trigger a WordPress AJAX PHP function :
https://codex.wordpress.org/AJAX_in_Plugins

in this PHP function, get the related team posts IDs, and populate the options of field "team-id".

And according to our support policy we don't provide custom codes support, you might check it with our Toolset Contractors:
https://toolset.com/contractors/

#1437073

Thank you for the information.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.