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:
- Install and activate the Post Management add-on.
- Click the form settings icon in the top toolbar.
- Click on the Data tab.
- Check the Populate Using Action setting.
- Select Post Management from the Action To Populate From dropdown.
- Select the the post type you would like to populate data from.
- Use one of the follow to determine which post to populate from:
- Leave it blank to use the Post ID of the post/page the form is shown on.
- Enter a post ID (e.g. 123) if you want to literally update that post ID.
- To use query string variable, enter:
#query_var("post_id")
.
Example URL:https://yourwebsite.com/page-with-form/?post_id=123
- 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.
- Click Save.
Tip: If the form does not populate it is possible you have a saved submission overwriting the populated form data. To clear this, reset the session ID from the debug console. Learn more.