Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 2 of 2

Thread: recording data from custom html item

  1. #1
    Join Date
    Oct 2008
    Posts
    15

    recording data from custom html item

    Hi Support team,
    Please help, as a complete novice I managed to write this little questionnaire with some of your examples, but I it just seems to need some tweaking to actually write the data. I would much appreciate some tips here. I looked at the other forums, but can't get it to work.

    Ljubica
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    Try the attached revision. You were actually VERY close! All I did was replace the instances of the variable names such as "varaq1" with "aq_01". If the reaction times for each item are important, you would need to add additional syntax to capture them. Just note that the variable names in the HTML need to match those that MediaLab uses in the data files.

    Hope that helps!

    ___________

    On a more complicated and not necessary note:

    I entered the variable names explicitly and removed the replacement syntax you used (I generally prefer to keep the variable names explicit in the HTML unless I'm repeating the question with different content later on). The substitution syntax could be used but your syntax would need to be modified a bit:

    in your syntax: NAME="var7" rather than NAME="varaq7" and the numeric id's would need to be changed to _01 rather than 1 (_02 rather than 2 etc.)

    and in the replace function: ml.replace NAME="var == NAME="ml.varname

    Otherwise you would get "aqaq1" as the variable name which ML would not be able to match up with anything in the data file. aq_01 is what you're trying to get (and aq_02, aq_03, etc.). Again, that's why I usually just make it explicit unless there is a real gain in efficiency to use the replacement stuff.
    Attached Files Attached Files

Similar Threads

  1. Custom item with various html form elements
    By huiyun in forum MediaLab Older Versions: Troubleshooting
    Replies: 1
    Last Post: 11-05-2009, 10:59 PM
  2. Custom HTML item doesn't display in v2004
    By jzadra in forum MediaLab Older Versions: General Questions
    Replies: 2
    Last Post: 03-24-2009, 02:54 PM
  3. Problem with having only 1 variable in Custom Item HTML
    By xaros in forum MediaLab Older Versions: Troubleshooting
    Replies: 3
    Last Post: 11-25-2008, 12:55 PM
  4. 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
  5. 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

Posting Permissions

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