# Using Form Component to Make Questionnaires

**URL:** <https://discourse.psychopy.org/t/using-form-component-to-make-questionnaires/8804>\
**Category:** Builder\
**Created:** [August 16, 2019, 4:10am UTC](https://discourse.psychopy.org/t/using-form-component-to-make-questionnaires/8804 "2019-08-16T04:10:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauren](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lauren/32/5591_2.png) [@lauren](https://discourse.psychopy.org/u/lauren)\
**Post date:** [August 16, 2019, 4:10am UTC](https://discourse.psychopy.org/t/using-form-component-to-make-questionnaires/8804/1 "2019-08-16T04:10:59Z")

</div>

**OS** (e.g. Win10): MacOS Mojave 10.14.6  
**PsychoPy version** (e.g. 1.84.x): 3.1.2  
**Standard Standalone? (y/n)** If not then what?:  
**What are you trying to achieve?:**

Need to create a questionnaire/survey routine in my experiment that can either allow text responses from participants or scale.  
**What did you try to make it work?:**

I have my excel sheet but don’t exactly know how to implement it into the form component in builder. I looped the routine, set it to repeat 28 times (since there’s 28 questions), and set the text component with $questionText to every repeat. When I run the experiment it’s just a blank screen and then ends with an error screen.  
**What specifically went wrong when you tried that?:**

```auto
  File "/Users/laurenf/Desktop/formtest_lastrun.py", line 84, in <module>
    itemPadding=0.05)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/visual/form.py", line 83, in __init__
    self.scrollSpeed = self.setScrollSpeed(self.items, 4)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/visual/form.py", line 223, in setScrollSpeed
    return len(items) * multiplier
TypeError: object of type 'NoneType' has no len()

```

Also how do I set up participant responses in both textbox/free response style and rating/slider style? Does forms just do it automatically?[BPS.xlsx](https://discourse.psychopy.org/uploads/short-url/9vUcYrOSXjy7ULVXRggi8lH3OE2.xlsx) (32.6 KB)

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [August 20, 2019, 9:20am UTC](https://discourse.psychopy.org/t/using-form-component-to-make-questionnaires/8804/2 "2019-08-20T09:20:42Z")

</div>

Hi @lauren, this looks like an issue with your conditions file, it needs to have entries for each of the relevant headings. Try the attached:

[BPS.xlsx](https://discourse.psychopy.org/uploads/short-url/qqC1pegHFdN5pDyWshEqi6bhMZ6.xlsx) (10.0 KB)
