Skip Navigation

[Gelöst] Types repeating fields using CRED Forms generic fields multi select to populate?

This support ticket is created vor 6 Jahren, 5 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 1 Antwort, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 6 Jahren, 5 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#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