Code Examples and Demos
This feature is part of the Visforms Subscription and not available in the free Visforms version..
The examples are build on the data gathered with the event registration demo form. They can give you an idea of how flexible you may display form data with the help of this plugin. But please keep in mind that these is still only a small collection of what is possible with the usefull plugin.
Compact table with pagination and search bar
Plugin string: {vfdataview}{"formid":"9","fieldlist":"109,110,111,112,113","display_num":"5","show_page_heading":"false","show_filter":"true","displaydetail":"true"}{/vfdataview}
This example shows alle record sets submitted with the form and shows it's own pagination, only displaying 5 record sets per page. If you use more than one intance of the plugin on a page to display different form data lists with pagination, this is no problem. Each pagination will work independently and just as you expect it to do.
Complete Registration list
Display the newest form submission record set
Plugin string:
{vfdataview}{"formid":"9","count":"1","sortorder":"created","sortdirection":"desc","layout":"list","fieldlist":"109,110,111,112,113","show_page_heading":"false","displaycreated":"true"}{/vfdataview}
In this example we display only the record set from the latest form submission. In addtion to the user inputs we display the creation date, too.
Latest Form Submission
This is a registration list for our sport event.
Data are ordered in ascending by the field last name. You can change the sort order with a click on the table column header. A second click on the same column header will reverse the sort order.
You can configure the data view in frontend individually. You decide individually for each field, whether to show it in the data view. You decide whether there should be a detail view and which fields are to display in that detail view. The number of record sets displayed per page can also be set individually.
- First name:
- Karl
- Last name:
- Clausen
- Year (of birth):
- 2000
- Gender:
- Male
- Distance:
- 10 Kilometer
Select only record sets with specified user inputs
Plugin string: {"formid":"9","fieldselect":{"112":"f","113":"10 Kilometer"},"fieldlist":"109,110","show_page_heading":"false"}{/vfdataview}
In this example we display only the record sets of female participants for the 10 Kilomenter run. Only Firstname and Name are displayed.
Participants of the 10 Kilometer run
The plugin offers you many more parameters which you can use to control the data display in content. (For full list see Parameter list).