Dropdown contents from custom PHP function

By: Konrad Palak | Asked: 06/12/2025
ForumsCategory: How-toDropdown contents from custom PHP function
Konrad Palak asked 4 weeks ago

Is it possible to make a dropdown that gets its contents (id and label for each row) from a custom PHP function, eg. through an array variable?

2 Answers
Rob LeVineRob LeVine Staff answered 4 weeks ago

https://formidableforms.com/knowledgebase/frm_setup_new_fields_vars/

and

https://formidableforms.com/knowledgebase/frm_setup_edit_fields_vars/

Dick Wynne answered 4 weeks ago

This is from my current project, a directory of editors, proofreaders etc. You provide the Get*Options functions, which return arrays of items of the form Name|Id or whatever terms you use. The 'categories' above appear in the dialog when you click 'Bulk Edit Entries' for a list control. Clear the present list (if there is one) and click the approriate item. Do this every time you edit the underlying data or changes won't be seen in the lists in the forms.Maybe there's a way to completely automate propagating data changes to the lists. My data doesn't change often enough for me to bother investigating that.

Konrad Palak replied 4 weeks ago

Thanks, both. I'll try to apply it in mu code.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right