Text Entry followed by a drop-down menu | XM Community
Solved

Text Entry followed by a drop-down menu


Hello,

We are creating a survey for a medical study, and would like to collect information about participants' smoking and drinking behaviors. We would like a feature that lets the participants input a number, then choose their unit of measurement (ie. 3 drinks a day, 2 drinks a week, 10 drinks a month, etc. I assume this is possible through Javascript, but I am no coder. I tried Googling a solution, but could not find anything. If anyone could help me out, I'd greatly appreciate it. Thanks!

-Sango
icon

Best answer by uhrxx005 29 June 2018, 23:12

View original

2 replies

Userlevel 6
Badge +5
I am not experienced with Javascript, but I believe you could accomplish something similar with a side-by-side question.

First column would be a text entry asking for the number of drinks. The second column would be a drop down with the choices of "a day" "a week" or "a month"
Yes, that works great! If only I saw your post a few days ago, it would have saved me a lot of time and energy 😕 thanks for your help though!

Leave a Reply