Populating Forms
-
Data Sources
WS Form data sources allow you to pull data from elsewhere into data grids for select, checkbox and radio fields.
-
Data Sources: WordPress Filter Hook
The WordPress Filter Hook data source allows you to dynamically populate a data grids with your own data for fields such as Select, Checkboxes and Radios.
-
How to Populate a Field with a New Post ID
How to populate a form field with a newly created post ID.
-
Passing Data from One Form to Another Using a Query String
It is possible to transfer data from one form to another using query string parameters.
-
Populate a Data Grid with ACF Relationship Field Posts
How to Populate Select, Checkbox, or Radio Fields with Posts Linked to an ACF Relationship Field.
-
Populate a Field With Query String Data
It is possible to populate a field with the value of a query string parameter using the WS Form variable.
-
Populate a Form With Post Data
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.
-
Populate a Form With User Data
It is possible to pre-populate a form with WordPress user data with the User Management add-on. This is useful for creating an 'Edit Profile' form.
-
Populate Select, Checkbox and Radio Fields Using PHP
You can use WS Form functions to dynamically populate select, checkbox or radio fields.
-
Populate the Default Value of a Field Using ACF Option Values
You can use WordPress filter hooks, WS Form functions, and ACF option page values to dynamically set the default value of fields.
-
Populate the Default Value of a Field Using PHP
You can use WS Form functions to dynamically set the default value of fields.
-
Populating Field Values with Post Data
There are various different ways you can populate the value of a field using post data.
-
Setting Which Post ID to Populate With Using PHP
In this tutorial we show you how to change the 'Post ID' setting found in Form Settings > Data > Populate Using Action by using a simple PHP script.
-
The WS Form Shortcode
Use the WS Form shortcode to add a form to any page or post within WordPress.
-
wsf_populate
The wsf_populate filter hook can be used to change the form population data prior to the form being rendered.