Tag Archives: tools

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 »