Posted by & filed under How To.

See how to embed simple forms in your WordPress Blog.

You can embed anything in a Vixo spreadsheet in WordPress using the Vixo WordPress plugin.

One of the things you can do in a Vixo spreadsheet is quickly build a form that collects data and stores it as tabular data in a spreadsheet. (We call these appending forms – as opposed to wiki forms. The documentation explores the difference between them. The post on making web calculators and quote engines describes a wiki form). A Vixo form can also be configured to send out emails when data is submitted.

The quick way to make a form is to select an range of cells and right-click on them. The context menu pops up – and one of the menu items is Create Form:


 
In Vixo all ‘programming’ is done by putting functions in cells. If you want to create an element on a form you use a function. There are functions for a range of different form components.
 
In the spreadsheet view all the web controls appear as previews:
 

 
Lets publish this form as a web page using the views menu:
 

 
The form looks like a normal web form:
 

 
Lets look at one of these functions in detail:
=form.input(Label, <Prompt>)
 
This function takes either one or two parameters – the first parameter Label describes the field. When the form fires the contents of that input will be stored in a column named after the label. Lets fire this basic form:

 
If the form is on a page http://example.com/some/page/ by default the form posts to the page http://example.com/some/page/replies/. This can be changed by passing different parameters to the submit button.
 
Lets see an actual form embedded in this page:

 
This form has been inserted with the Vixo shortcode:
[vixo url="http://wordpress-demo.vixo.com/form/"]
 
To have a go yourself, get a Vixo spreadsheet:

(this is an embedded spreadsheet control too!)

Forms are quick and easy with Vixo.