Title: Populating select list options programatically
Last modified: October 14, 2021

---

# Populating select list options programatically

 *  Resolved [evaldash](https://wordpress.org/support/users/evaldash/)
 * (@evaldash)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/populating-select-list-options-programatically/)
 * Hello. I’m using this plugin for product inquiries. I’ve populated the list with
   product names and prices manually, but realised preety quickly that it’s not 
   ideal, since if I add a new product I need to manually edit the list. I was wondering
   whether there is a way to populate the searchable list options programatically?

Viewing 1 replies (of 1 total)

 *  Thread Starter [evaldash](https://wordpress.org/support/users/evaldash/)
 * (@evaldash)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/populating-select-list-options-programatically/#post-14996195)
 * I managed to find a workaround. Rather than setting the options programatically,
   I exported the products with WP all export, with the fields “Label”, “Amount”,
   and “Image Url”. Then I imported the options within the Smart Forms plugin. I
   guess I’ll just update the options whenever I add a new product or remove an 
   existing one, since there doesn’t seem to be an easy way to set the options programatically.

Viewing 1 replies (of 1 total)

The topic ‘Populating select list options programatically’ is closed to new replies.

 * ![](https://ps.w.org/smart-forms/assets/icon-256x256.jpg?rev=1226707)
 * [Smart Forms - when you need more than just a contact form](https://wordpress.org/plugins/smart-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-forms/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [evaldash](https://wordpress.org/support/users/evaldash/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/populating-select-list-options-programatically/#post-14996195)
 * Status: resolved