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 2 weeks ago
I'm guessing there is an API for this, but I can't find it!
1 Answers
Rob LeVineRob LeVine answered 2 weeks 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 2 weeks 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 2 weeks 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