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

Custom item issue with multiple radio

  1. #1

    Custom item issue with multiple radio

    Hello, we're having some trouble with a custom that we are creating. I've attached the html and que files. The html code indicates that we want radio buttons and multiple items on the same page. The issue is that the data is not saving (it's saving as "99"). The last several lines of the html code indicate that medialab should replace "var" with the custom item name (which would result in variables like "AA1j"). The reason I think the problem is about the "ml.replace" command is that when I change one of my "placeholder" item names from "AA1j" to "varj" the data IS saved (see the html file). Notice also that if you delete those last several lines, nothing changes. We also found
    code and que files that were posted on the website for "multiple radio" buttons-- that code+que did not work either, at least not with regard to saving data. Here is the link to that code:

    http://www.empirisoft.com/Support/showthread.php?t=165&highlight=radio

    Any advice would be greatly appreciated as we are trying to get this study off the ground soon. Thanks!

  2. #2
    jarvis24 Blair Jarvis, Administrator
    When we first started doing the custom items like this, we used the "replacement" syntax that was in the HTMl file you attached. Since the release of v2008 though, we improved the method (see the user's guide) and it's a lot more efficient. For one, you do not need to list all the variables in your que file like that any more. Simply indicating (v5) when you call the custom item tells MediaLab to create 5 variables for the custom item. Then you can simply refer to those variables as _01, _02, _03, _04, and _05 in your form. Try running the attached revision and see if it works for you. I just tried it here and it recorded the data fine.