Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 3 of 3

Thread: HTML forms set within MediaLab

  1. #1
    Join Date
    May 2009
    Posts
    1

    HTML forms set within MediaLab

    Hi, this is more of an HTML question than a MediaLab one, but I thought I'd ask.

    I want to insert an HTML form within MediaLab. I know how to put HTML documents within Medialab, but I want to use an HTML document that also has forms that participants can enter responses into and then submit. I'd like these submitted responses to be written to my computer's hard drive.

    Can anyone advise me on how to do this?

    Thanks,
    David

  2. #2
    Easy going. Declare a variable name in ML, and use that name for all of your HTML-variables + an identifier.

    Easy example for a 2 item questionnaire with 2 answering options (in the example, I use radio bottons, as you can see):

    <input type="radio" name="nbp_01" value="1">
    <input type="radio" name="nbp_01" value="2">

    <input type="radio" name="nbp_02" value="1">
    <input type="radio" name="nbp_02" value="2">

    The variable name in the ML questionnaire is "nbp" and you use the HTML-item-type. The identifier is "_xx")
    In my example, you should find two variables in your data output, a "nbp_01" + value from the subject and a "nbp_02" + the value from a subject.

    Normally, this works.
    best,
    Tom

    P.S. I guess there is a tutorial and an example about stuff like this which is shipped with ML..?

  3. #3
    Join Date
    Mar 2009
    Posts
    401
    Thanks Thomas!

    There's also samples that show you exactly how to do this kind of thing within the user guide. Check out the section entitled "Custom Items" or read through the help online here:
    http://www.empirisoft.com/medialab/h...stom_items.htm

Similar Threads

  1. html in MediaLab 2004
    By Jamal in forum MediaLab Older Versions: General Questions
    Replies: 2
    Last Post: 12-17-2008, 02:06 PM
  2. Medialab, HTML and redirections to PHP
    By Thomas in forum MediaLab Older Versions: Troubleshooting
    Replies: 6
    Last Post: 11-11-2008, 07:32 PM
  3. missing value not set
    By skswbwt in forum MediaLab Older Versions: Troubleshooting
    Replies: 3
    Last Post: 09-03-2008, 11:12 AM
  4. How do I set an image as a background?
    By scienceisbeauty in forum DirectRT Older Versions: General Questions
    Replies: 1
    Last Post: 06-10-2008, 03:29 PM
  5. MediaLab & DirectRT: Set-up questions
    By HongKong in forum DirectRT Older Versions: General Questions
    Replies: 2
    Last Post: 09-26-2007, 04:17 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
  •