Populate a Form With Post DataPRO

This knowledge base article relates to the WS Form Post Management add-on. Included with the Agency edition or buy separately for other editions.

It is possible to pre-populate a form with WordPress post data using the Post Management add-on. The data could be from a page, post or any other custom post type registered in your theme.

To do this:WS Form - Populating forms dynamically using post data

  1. Install and activate the Post Management add-on.
  2. Click the form settings  icon in the top toolbar.
  3. Click on the ‘Data’ tab.
  4. Check the ‘Populate Using Action’ setting.
  5. Select ‘Post Management’ from the ‘Action To Populate From’ dropdown.
  6. Select the the post type you would like to populate data from.
  7. By default WS Form using the Post ID of the post/page the form is shown on. You can also enter a literal post ID (e.g. 123) in the Post ID setting or if you would like to dynamically populate the data using a query string variable, enter: #query_var("post_id"). This will enable you to populate the form using a post ID specified in the URL. For example: https://yourwebsite.com/page-with-form/?post_id=123
  8. Use the field mapping, meta mapping and tag mapping settings to determine which fields, meta and tag (WordPress terms) you would like to populate into which fields of your form. Click the ‘Add’  icon to add new mappings.
  9. Click ‘Save’.