Fill in forms
Define forms that you wish to complete together with your participant.

In this Node you create a form to gather information from your participant.


Copy the code snippet into your script

<node id="Fill_in_forms" type="Form">
<name>Fill in forms</name>
<title>Details about the customer</title>
<text>Complete the following</text>
<fields>
<field name="company name" text="Company name" />
<field name="family name" text="Last name" />
<field name="birth names" text="First name" />
</fields>
</node>


After copying it, do the following:

1. Make sure the node id is unique. Give it a name / number or combination of both. (here: Fill_in_forms).

2. You can give the node a descriptive name. (here: Fill in forms).

3. Change the title, it will visible on top of the screen. (here: Details about the customer)

4. Change the text, it´s the subtitle and visible. (here: Complete the following)

5. Change the fields: The field name is the name of the database field. The text is the description appearing on the screen. 

6. Press the 'Save' Button.

Now check the script by running it...click 'Start new session'.


Advanced: Drop Down

Instead of a field with an open question, you can create a drop down field with multiple options. Add the following code somewhere between <fields> and </fields>.


Copy the code snippet into your script

<field name="gender" text="mister or miss">
<options>
<option value=" "><text> </text></option>
<option value="mister"><text>mister</text></option>
<option value="miss"><text>miss</text></option>
</options>
</field>


Advanced: Height and width of a field

The height and the width of a field on the screen are predefined. But if you want to adjust them just add the parameters rows=" " and cols="


Copy the code snippet into your script

<field name="family name" text="Last name" rows="2" cols="60" />



Advanced: Mandatory fields

You can make fields mandatory by adding mandatory="true". A mandatory field must be filled in before you can go to the next step.


Copy the code snippet into your script

<field name="family name" text="Last name" rows="2" cols="60" mandatory="true" /> 



Advanced: Additional line of text between or above fields

A separate text line can be made by adding the field type rowWithtext.


Copy the code snippet into your script

<field name="header" text="Your details" type="rowWithText"> 
</field>



Advanced: The appearance of the text
  • Bold: place the text between **
  • Italic: place the text between *
  • Line break: add 7 ^^^^^^^
  • Tab: use >
  • Picture: use ![description](link of the picture)
  • Link: use [description](link)


Tip watch: Video: Create your own Script (basic) to create your first own Script.