How to dynamically populate (i.e. in JS code) a dropdown?

By: Dick Wynne | Asked: 11/28/2024
ForumsCategory: How-toHow to dynamically populate (i.e. in JS code) a dropdown?
Dick Wynne asked 6 hours ago
I'm guessing there is an API for this, but I can't find it!
1 Answers
Rob LeVineRob LeVine answered 6 hours ago
I'm not sure why you want a JS solution. You can do it with one of the Formidable hooks, frm_setup_new_fields_vars
Dick Wynne replied 5 hours ago

Thans Rob I missed that. I think some JS will be needed as I am populating with selections from an independent tree widget, but I expect I can get it all working.

Rob LeVineRob LeVine replied 4 hours ago

I've certainly populated dropdowns in JS, but the data is still retrieved by an Ajax call, so, in the end the data came from a PHP program anyway. Good luck.

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