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.

Dynamic populating

  1. I have two forms. The first, on submit is redirected to a second form and the Field Data is Passed Via Query String. I've allowed the fields on the first form to be populated dynamically and assigned a paramater name for them. On the second form I have the visibility set for only the administrator. Now I'm not sure if I'm doing this right because by doing this it is sending out two forms. So I'm not sure the data has been passed at all. How/where should the paramaters from the fields on the first form be referenced on the second form? Sorry for such a basic question and thanks in advance for your help!

    Posted 14 years ago on Tuesday October 4, 2011 | Permalink
  2. You mentioned you configured the fields on the FIRST form to be populated dynamically. If the first form is the one passing data to the second form via the query string it is the SECOND form you would need to configure so that the fields can be populated dynamically. You'd then give the parameter name equal to what is being passed in the query string.

    The field you are populating dynamically can be a hidden field or a field set to visibility to admin only.

    How will you know if it works if it's a hidden field or the visibility is set to admin only? You would submit the form after being redirected to it by the first form and then view the entry that is created and make sure the dynamically populated data is there.

    If it is not, then you didn't configure the field properly or pass the data properly via the query string.

    One thing to note also is some query string parameters are reserved by WordPress and can't be used. If you use a reserved query string parameter... the page will return a 404 error. So if you encounter that, this is why.

    Posted 14 years ago on Tuesday October 4, 2011 | Permalink