Skip Navigation

[Resolved] Types repeating fields using CRED Forms generic fields multi select to populate?

This support ticket is created 6 years, 6 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 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#919830

Id like to have a list of values in a multi select generic CRED field populate a repeating Types field.

Ive got a list of countries that I would like the user to pick from - they may need to pick more than one.

I would then like these stored against a custom field in types as separate values of a repeating field that i can display on the front end?

Is this possible, I cant get it to work currently.

Im using a view to bring up the values in the generic field - but when I use the generic multiselect in CRED it wont store.

#920146

Hello,

It needs custom PHP codes, for example:
When user choose some options in the multi select field, and submit the Toolset form, you can use action hook cred_save_data to trigger a custom PHP function
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

in this function get the value of user submitted, and save it into database
https://codex.wordpress.org/Function_Reference/add_post_meta