Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 6 of 6

Thread: Repeating a custom item that has multiple questions?

  1. #1
    Join Date
    Nov 2005
    Posts
    3,328

    Repeating a custom item that has multiple questions?

    [edited from support email]
    I'm trying to use a custom HTML object to get three numerical responses per page. I will, however, be using this custom object 5+ times, and would perhaps like to randomize the order. I would like to avoid coding all the pages separately, so is there a way to use the < ml.variable> command for three different variables on the same page? If there is, would you be able to send me some sample code? I tend to understand it better that way. Thanks!

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    Sounds like you have read the section in the guide on custom items, yes? If not, here is a link to it online:

    www.empirisoft.com/medialab/help/custom_items.htm

    I think what you are looking for may be this:

    Combining this:
    Code:
    <form method="post">
      <ml.wording>
      <input name="<ml.varname>">
      <input type="submit" value="Continue"">
    </form>
    With this:
    Code:
    <form method="post">
      Name three good movies:<br><br>
      <input name="movies_01"><br>
      <input name="movies_02"><br>
      <input name="movies_03"><br><br>
      <input type="submit" value="Continue">
    </form>
    And getting this:
    Code:
    <form method="post">
      Name three <ml.wording>:<br><br>
      <input name="<ml.varname>_01"><br>
      <input name="<ml.varname>_02"><br>
      <input name="<ml.varname>_03"><br><br>
      <input type="submit" value="Continue">
    </form>
    Just make sure you list (v3) as a parameter each time you call the custom item. If that works for you, let me know!

    -Blair
    Last edited by jarvis24; 01-10-2007 at 04:15 PM.

  3. #3
    Looks great! Any possible way to change the _01, _02 etc. to other things? (I suspect not)

  4. #4
    Join Date
    Nov 2005
    Posts
    3,328
    Nope. I'd be curious to see your final result--send me a copy of you get a chance.

    -Blair

  5. #5
    I actually ended up going another route to make the data easier to group for analysis, and made separate objects for each. Here is what I ended up with.

    It's a little crazy, but this object gathers a best estimate, and upper and lower estimates for a 90% confidence region. The two buttons above the estimates reveal text which will be another participant's estimate, as well as the current participant's previous estimate (If anyone knows how I could get this value from an .xls file to the html, let me know!). The hidden radios at the bottom record whether the first button was pressed. The image shown uses the <ml.bg> function which is really useful!
    Attached Files Attached Files

  6. #6
    Join Date
    Nov 2005
    Posts
    3,328
    Check out http://www.empirisoft.com/support/showthread.php?t=582 for a discussion of your origional sample with respect to inserting values from a responses.xls file.

    Would you mind posting some version of the que file along with the final revised html file, or a simplified version of it so other users could see it in action with MediaLab? i.e., with the automatic background and variables inserted from the xls file (if you get that far!).

    -Blair

Similar Threads

  1. Custom item - Autosum
    By akipaki_sf5 in forum MediaLab Older Versions: Sharing Area
    Replies: 16
    Last Post: 12-06-2008, 02:31 PM
  2. Hiring a programmer for a custom item?
    By jarvis24 in forum MediaLab Older Versions: How Do I...
    Replies: 3
    Last Post: 11-17-2006, 08:26 AM
  3. Multiple Questions per Questionnaire?
    By ggarofal in forum MediaLab Older Versions: General Questions
    Replies: 10
    Last Post: 10-24-2006, 03:14 PM
  4. Require three responses on a Multiple Response item
    By jarvis24 in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 09-22-2006, 10:40 AM
  5. custom item with background image
    By rkozink in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 05-04-2006, 01:10 PM

Posting Permissions

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