Tag Archives: form

Submitting form data to a Usabilla test How-tos

Submitting form data to a Usabilla test

Not so long ago we’ve added ‘custom variables’ to our tests. We store every variable you specify in the URL of your test and include these variables and an unique participant id (pid) in your redirect URL. That might sound a bit complicated, but enables you to store additional data for individual participants in Usabilla and to pass through data to other services as well. Let me try to explain with a simple example using a web form to submit data to a Usabilla test:

A simple web form

You can submit a simple web form to a Usabilla test. If you use ‘GET’ as method, the fields in your form are submitted as URL encoded variables. Example:

<form method="get" id="screener" name="screener" action="http://usabilla.com/rate/15927259904cb5afe7f3c00"> 	
	<label for="name">Name:</label> 
	<input id="name" name="name" type="text" /> 
	<label for="group">Group:</label> 
	<select id="group" name="group"> 
		<option value="A">A</option> 
		<option value="B">B</option> 
	</select> 
	<input type="submit" value="Submit" /> 
</form>
<form method=”get” id=”screener” name=”screener” action=”http://usabilla.com/rate/15927259904cb5afe7f3c00″>
<label for=”name”>Name:</label>
<input id=”name” name=”name” type=”text” />
<label for=”group”>Group:</label>
<select id=”group” name=”group”>
<option value=”A”>A</option>
<option value=”B”>B</option>
</select>
<input type=”submit” value=”Submit” />
</form>

This example form submits two variables (name and group) to a Usabilla test. The form input is stored together with the test data of your participant. At the end of the test the variables will also be attached to the redirect URL. This redirect URL could be another survey as well: read about combining Usabilla with a PollDaddy survey.

Read the rest of this entry »

Add a survey to your test How-tos

Add a survey to your test

In some cases it can be useful to add a survey to your test. Using a survey allows you to collect quantitative information from your participants. This information can be an interesting addition for the analysis of your test results. For example, you might want to know the average age or the ratio of male and female participating in your test.

Embed a form or use the Redirect URL

You can embed surveys in your test with an iframe in the ‘Thank You’ page or simply redirect your users to the URL of your survey. If you redirect your users to an external form, we’ll add a variable ‘?ub_pid=#######’ to the redirect URL. This variable is the id of your participant, which can also be found in our data exports (‘subject’ in the XML, CSV, TXT files).

You can use any external survey tool you like. In this post you’ll find an example of how to embed a Wufoo form and use an external PollDaddy form in combination with your Usabilla test.

Read the rest of this entry »