PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

add fields to form programmatically

  1. Hi guys,
    I'm looking for a way in order to realize an order form. in this form there should be a list containing posts (specific post type) with 2 attributes (language and order amount). is there a way to achieve this? i've figured out how to add values to given field, but in this case it would be necessary to add fields to the form dynamically via PHP.
    thanks in advance.
    stefan

    Posted 9 years ago on Saturday September 15, 2012 | Permalink
  2. There is no way to programattically add fields to a form on the fly. All the fields need to exist in the form at the outset.

    If you mean dynamically populating a drop down or a list of posts, that can be done, but you can't programattically add fields to the form.

    Posted 9 years ago on Saturday September 15, 2012 | Permalink