I am trying to build an order form where a user can select a product from a dropdown list, add a quantity, and submit. The product list will be dynamically populated.
I have used the gform_pre_render hook to customize other dropdown fields, but I am not having success in customizing a product dropdown. I have looked at the gform_product_info hook, but I am not sure how I would add multiple values that way.
What I need to know is:
Am I passing an array to gform_pre_render or to gform_product_info (or something else?) to populate a product dropdown?
What is the structure of that array?