Search the Legacy Support Archive (up to v2020)
  1. Read-only archive (2005–2024). Posting is closed. Need help with MediaLab or DirectRT 2027? Email service@empirisoft.com.

    All words · “exact phrase” · -leave out

    Advanced search

Problem with having only 1 variable in Custom Item HTML

  1. #1

    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
    jarvis24 Blair Jarvis, Administrator
    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
    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
    jarvis24 Blair Jarvis, Administrator
    Glad to hear it--thanks for the update!