Adding a text box into a radiobutton question


Author
Message
gsu
gsu
Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)
Group: Forum Members
Posts: 42, Visits: 27










Hi Dave,


 


In one of our survey questions, we ask participants when
they learned English. Our options are:


 


Before the age of 5


At the age of 5 or later (specify age in years).


 


Here I want them to specify their age but I couldn’t find a
way to insert a textbox within this question. Here is our script for this
question:


 


<radiobuttons english>


 


/ caption = "When did you learn English?"


 


/ options = ("Before the age of 5")


 


/ other = "At the age of 5 or later (specify age in
years)"


 


</radiobuttons>


 


Can you help me with that?


Thanks!


G.


P.S: I'm using Inquisit 4 on my own computer, but have Inquisit 3 in the lab. 



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

<radiobuttons english>
/ caption = "When did you learn English?"
/ options = ("Before the age of 5")
/ other = "At the age of 5 or later (specify age in years)"
</radiobuttons>

<surveypage pg01>
/ questions = [1=english]
</surveypage>


works perfectly fine in Inquisit 3 and Inqusit 4.0.0.1 on Windows (note that the textbox may only become visible once you select the respective option).


Regards,


~Dave


gsu
gsu
Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)
Group: Forum Members
Posts: 42, Visits: 27

Hey,


Thank you so much for your response. I tried it a couple of times but it is still not working. It's not an individual question, but embedded in a group of demographics. Can the problem be related to that? Here is the script for all of them:



<survey demographicsA>



/ pages = [1 = demographics1; 2= demographics2; 3 = knowA]



/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)



/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)



/ itemspacing = 2%



/ showpagenumbers = false



</survey>





<survey demographicsB>



/ pages = [1 = demographics1; 2= demographics2; 3 = knowB]



/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)



/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)



/ itemspacing = 2%



/ showpagenumbers = false



</survey>





<survey demographicsC>



/ pages = [1 = demographics1; 2= demographics2; 3 = knowC]



/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)



/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)



/ itemspacing = 2%



/ showpagenumbers = false



</survey>





<textbox age>



/ caption = "Age"



/ mask = positiveinteger



/ range = (16, 99)



</textbox>





<dropdown sex>



/ caption = "Sex"



/ options = ("female", "male")



/ optionvalues = ("0", "1")



</dropdown>





<dropdown ugrad_year>



/ caption = "Class year"



/ options = ("1st year undergraduate", "2nd year undergraduate", "3rd year undergraduate", 



"4th year undergraduate", "5th+ year undergraduate", "1st year grad student", 



"2nd year grad student", "3rd+ year grad student", "not a student")



/ optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9")



</dropdown>





<dropdown latino>



/ caption = "Ethnicity"



/ options = ("Hispanic or Latino", "Not Hispanic or Latino")



/ optionvalues = ("1", "0")



</dropdown>





<checkboxes race>



/ caption = "Race (select all that apply)"



/ options = ("White", "Asian", "Black/African American", "Native Hawaiian/Pacific Islander", "American Indian/Alaska Native")



/ other = "Other"



</checkboxes>





<radiobuttons english>



/ caption = "When did you learn English?"



/ options = ("Before the age of 5")



/ other = "At the age of 5 or later (specify age in years)"



</radiobuttons>




<textbox major>



/ caption = "Academic major"



</textbox>





<surveypage demographics1>



/ caption = "Please answer the following demographic questions"



/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)



/ questions = [1=age; 2=sex] 



</surveypage>





<surveypage demographics2>



/ caption = "Please answer the following demographic questions (continued)"



/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)



/ questions = [1=ugrad_year; 2=latino; 3=race; 4=english; 5=major] 



</surveypage>



Thank you so much!


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

The code you posted is not complete, so I can't test this. I, however, doubt that it makes any difference. As I said, the textbox for the /other option shows up just fine for me in the current Inquisit 3 and 4 versions available at millisecond.com (3.0.6.0 and 4.0.0.1 respectively). Check if your installation is up to date.


gsu
gsu
Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)
Group: Forum Members
Posts: 42, Visits: 27

Hi Dave,


I tried one more time and even tried to move the question to a separate page, but it's not working. I checked my version and it is 4.0.0.1 so I can't see any problem with that either. Here is the complete code if this helps. Thanks again!




<survey demographicsC>



/ pages = [1 = demographics1; 2= demographics2; 3= demographics3; 4 = knowC]



/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)



/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)



/ itemspacing = 2%



/ showpagenumbers = false



</survey>





<textbox age>



/ caption = "Age"



/ mask = positiveinteger



/ range = (16, 99)



</textbox>





<dropdown sex>



/ caption = "Sex"



/ options = ("female", "male")



/ optionvalues = ("0", "1")



</dropdown>





<dropdown ugrad_year>



/ caption = "Class year"



/ options = ("1st year undergraduate", "2nd year undergraduate", "3rd year undergraduate", 



"4th year undergraduate", "5th+ year undergraduate", "1st year grad student", 



"2nd year grad student", "3rd+ year grad student", "not a student")



/ optionvalues = ("1", "2", "3", "4", "5", "6", "7", "8", "9")



</dropdown>





<dropdown latino>



/ caption = "Ethnicity"



/ options = ("Hispanic or Latino", "Not Hispanic or Latino")



/ optionvalues = ("1", "0")



</dropdown>





<checkboxes race>



/ caption = "Race (select all that apply)"



/ options = ("White", "Asian", "Black/African American", "Native Hawaiian/Pacific Islander", "American Indian/Alaska Native")



/ other = "Other"



</checkboxes>





<radiobuttons english>



/ caption = "When did you learn English?"



/ options = ("Before the age of 5")



/ other = "At the age of 5 or later (specify age in years)"



</radiobuttons>




<surveypage pg01>



/ questions = [1=english]



</surveypage>





<textbox major>



/ caption = "Academic major"



</textbox>





<surveypage demographics1>



/ caption = "Please answer the following demographic questions"



/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)



/ questions = [1=age; 2=sex] 



</surveypage>





<surveypage demographics2>



/ caption = "Please answer the following demographic questions (continued)"



/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)



/ questions = [1=ugrad_year; 2=latino; 3=race; 4=major] 



</surveypage>




<surveypage demographics3>



/ caption = "Please answer the following demographic questions (continued)"



/ fontstyle = ("Verdana", -16, true, false, false, false, 5, 0)



/ questions = [1=english] 



</surveypage>








<surveypage knowA>



/ questions = [1=know1; 2=close1]



</surveypage>





<surveypage knowB>



/ questions = [1=know2; 2=close2]



</surveypage>





<surveypage knowC>



/ questions = [1=know1; 2=close1; 3=know2; 4=close2]



</surveypage>





<radiobuttons know1>



/ caption = "Are you acquainted with someone called Terry?"



/ options = ("Yes", "No")



/ optionvalues = ("1", "2")



/ orientation = vertical



/ required = true



</radiobuttons>





<radiobuttons close1>



/ caption = "If yes, how close are you with Terry?"



/ options = ("Not at all", "", "", "", "Very much")



/ optionvalues = ("1", "2", "3", "4", "5")



/ orientation = vertical



/ required = false



</radiobuttons>





<radiobuttons know2>



/ caption = "Are you acquainted with someone called Pat?"



/ options = ("Yes", "No")



/ optionvalues = ("1", "2")



/ orientation = vertical



/ required = true



</radiobuttons>





<radiobuttons close2>



/ caption = "If yes, how close are you with Pat?"



/ options = ("Not at all", "", "", "", "Very much")



/ optionvalues = ("1", "2", "3", "4", "5")



/ orientation = vertical



/ required = false



</radiobuttons>



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

Your code works fine for me in 4.0.0.1:



You might want to try if referencing a separate <textbox> element via /other works for you as an alternative (cf http://www.millisecond.com/forums/Topic1669.aspx#1669). Also, what OS are running this on?


gsu
gsu
Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)
Group: Forum Members
Posts: 42, Visits: 27

I'm using Mac OS X Lion 10.7.5. I tried adding a textbox - it didn't work either. The weird thing is that the program thinks there is a textbox - it doesn't let me go to the next page if I select "After age of 5" option. It just doesn't bring a textbox - or maybe brings one, but it's invisible.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

Then you're hitting a bug specific to the Mac version. This should be fixed in the next update. Since you're using Inquisit 3 in the lab, though, this should not be a practical issue -- the code works fine in both Inquisit 3 and 4 on Windows.


gsu
gsu
Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)
Group: Forum Members
Posts: 42, Visits: 27

Yeah, I just tried it on a PC and it's working! Thank you!


shorwitz
shorwitz
Partner Member (800 reputation)Partner Member (800 reputation)Partner Member (800 reputation)Partner Member (800 reputation)Partner Member (800 reputation)Partner Member (800 reputation)Partner Member (800 reputation)Partner Member (800 reputation)Partner Member (800 reputation)
Group: Forum Members
Posts: 11, Visits: 5

Hi Dave,


Do you know if this bug ever got fixed? I have the December release and am experiencing the same bug running Inquisit on a Mac with OS 10.8


Thanks!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search