Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 4 of 4

Thread: Problem with having only 1 variable in Custom Item HTML

  1. #1
    Join Date
    Sep 2008
    Posts
    2

    Problem with having only 1 variable in Custom Item HTML

    Hello!

    I'm currently working on a questionnaire where the subjects are supposed to make predictions over a number of "days", with one "fill in the blank"-type question per day/page. Since I need to have tables and some other things, I decided it would be easiest for me to do this in HTML, and use the Custom Item-option in ML, instead of the built in fill-in-the-blank item.

    Now, this works fine when there are several variables to be answered on the same page (say, age, sex, education, or whataver), but when I only have one variable, the data will always be recorded as "ok", no matter what I enter.

    This only seems to happen when I either enter (v1) into the ML parameters field, or don't specify the number of variables at all. If I enter (v2) or more, the problem seems to disappear. However, then I'll get an extra varible that is recorded as "99", which might be confusing for the researcher who will analyze the data later on.

    Am I doing something wrong here? Or is there another way to tell ML that I only wish to record one variable for my Custom Item?

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    When there is one variable, are you using the variable name from the MediaLab questionnaire? e.g., if the variable name in ML is "myvar" then do you refer to it as "myvar" in the html of the custom item? Or <ml.varname>? Or "myvar_01"? Feel free to zip and attach the files if you think it might help.

  3. #3
    Join Date
    Sep 2008
    Posts
    2
    Quote Originally Posted by jarvis24 View Post
    When there is one variable, are you using the variable name from the MediaLab questionnaire? e.g., if the variable name in ML is "myvar" then do you refer to it as "myvar" in the html of the custom item? Or <ml.varname>? Or "myvar_01"? Feel free to zip and attach the files if you think it might help.
    The variable was named "<ml.varname>_01". After reading this, I removed the "_01" and now it works fine with Parameter: (v1)! Thank you for the help!

  4. #4
    Join Date
    Nov 2005
    Posts
    3,328
    Glad to hear it--thanks for the update!

Similar Threads

  1. Problem with ü (umlaut) when using html-custom items
    By Henrik in forum MediaLab Older Versions: Troubleshooting
    Replies: 1
    Last Post: 11-17-2008, 04:19 PM
  2. custom item - html text input being saved without commas
    By mfkomorowski in forum MediaLab Older Versions: Troubleshooting
    Replies: 5
    Last Post: 03-10-2008, 05:32 PM
  3. Reaction time data for custom HTML item
    By lekyung in forum MediaLab Older Versions: General Questions
    Replies: 2
    Last Post: 10-31-2007, 09:51 AM
  4. Empty experiment file and HTML problem
    By Sonia in forum MediaLab Older Versions: Troubleshooting
    Replies: 3
    Last Post: 07-12-2006, 04:56 PM
  5. Spacebar problem with HTML in v2006
    By jarvis24 in forum MediaLab Older Versions: Troubleshooting
    Replies: 1
    Last Post: 12-12-2005, 09:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •