WordPress.org

Plugin Directory

Just another survey tool

JAST supply a simple way to let your site interactive with the visitor. It's easy to use, but can still do complicate survey questionnaires.

Work with JAST

You can get more information at Work with JAST.

Design the questionnaire.

JAST add a new post type Survey in wordpress, you can add a questionnaire by add a new Survey post. It's just like a normal post, you can write anything and use css to style it. Also you use shortcode lxt_jast_qust to define survey questions. The content between shortcode tags is the question's title, and the shotcode also have a few properties which are:

  • name - A key to indentify the question, must supply.
  • type - Html 5 input element type, select and textarea element, mostly used are radio\checkbox\text\textarea. Use "text" when not supply.
  • class - Css class, not required. Use when you need diffrent question layout.
  • option - Question answer options separate by a semi-colon.

Below is an example Survey post content.

[lxt_jast_qust name="1" type="checkbox" option="Business site;Personal blog;Have a try;"]1. What do you use WordPress for?[/lxt_jast_qust]
[lxt_jast_qust name="2" type="radio" option="Yes;No"]2. Do you need a survey tool for WordPress?[/lxt_jast_qust]
[lxt_jast_qust name="4" type="select" option=";Chrome;Fire fox;Opera;IE"]3. What's your favourite broswer?[/lxt_jast_qust]
[lxt_jast_qust name="3" type="textarea"]4. What is the most important function a survey tool needed?[/lxt_jast_qust]
[lxt_jast_submit value="Done>>"]

You can copy the code to Survey post editor and edit it to see the effect.

At the end of a questionnaire you need add shotcode lxt_jast_submit, which will add a submit button the vistor can submit his answer. The example above showed how to use it. There are four property of lxt_jast_submit:

  • value - Text of the button.
  • afterurl - Redirect url after submit the answer when show questionnaire as normal page, default is previous page.
  • class - Css class, not required. Use when you need diffrent question layout.
  • message - Greeting text showed after submiting the answer, don't show greeting when not supply.

Let visitors do the questionnaire.

Visitor can view and do the questionnaire by two ways, by popup window or normal page. I recommend popup window for small questionnaire which have less than 5 questions. One can put a popup window link by widget which fixed on the site or by shortcode which showed within post or page. The plugin have a widget called Survey, it will contain a link which popup the survey you selected.

Sometimes a survey relate with a post's subject, it make sense to put the survey's link within the post. One can do this by shortcode lxt_jast_survey. It has a property named title, whose value is the title of the survey want to popup. Below is an example of how to use it.

[lxt_jast_survey title="Survey about WordPress"]

For some survey more complicate and serious, vistor can view it by a normal page. Survey posts don't show on the front page by default. You need add a link to the survey page manually at where you want the link display.The link URL can be get by Get shortlink button at survey edit page.

View and use the survey results

Administrator can view the survey results at Survey results page which under the Survey menu. The operation on this page is straightforward, just select the survey and question by combo-box to see the result.

Sometimes we need show the survey results to the reader, shortcode lxt_jast_result will do that, it display a realtime result chart in post or page. For example:

[lxt_jast_result title="Survey about WordPress" name="2"]

This shortcode has three properties:

  • title - title of the survey post, must not null.
  • name - which indicate the question, when not supply, it will show the chart of all questions which have option answer.
  • type - indicate the chart type, can be pie and bar, when not supply, it will use pie for radio type question and bar for checkbox type question.

You can get more information at Work with JAST.

Requires: 3.5.1 or higher
Compatible up to: 3.8.9
Last Updated: 2013-12-25
Active Installs: 100+

Ratings

1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 0,1,0
0,1,0