Skip Navigation

[Resolved] Get values of a field

This support ticket is created 3 years, 10 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: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by rashmiS 3 years, 10 months ago.

Assisted by: Jamal.

Author
Posts
#1959153

Hello,

I have a field group, eg Post Field Group. That Field group has a couple different fields, including a radio button field, news-type. The news-type field has several options - 'blog', 'award', 'grant', etc. How can I use the Toolset API to get an array of those options? I'm trying to build a new REST API endpoint and can get a list of all the fields in the field group using some of the methods / objects listed here: https://toolset.com/documentation/programmer-reference/toolset-custom-field-api/. I can for instance use toolset_get_field_group() and get data about each field with get_field_definitions(), but can't figure out how to get the field options.

Thanks,
Cole

#1960103

Hello and thank you for contacting the Toolset support.

I believe the custom code in the following reply might help you see how the Fields API can be used with checkboxes. It may inspire you to do the same for Radio buttons.
https://toolset.com/forums/topic/get-all-custom-fields/#post-1901363

Let me know if you still need further assistance.

#1964749

My issue is resolved now. Thank you!