Requiring answer for dropdown item


Author
Message
implicitexplicit
implicitexplicit
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 9, Visits: 25
Dear Forum,

I've got the following issue: I'd like to make answers to most of the questions in the survey part of my script mandatory. Employing "/required = true" for all mandatory items works fine for radiobuttons, just not for dropdown menus: The answer "Please select" is already prechosen, and if it is not changed it still counts as a valid response. I tried limiting this by using "/validresponse = ("Option 1", "Option 2", ...) for dropdown items, listing all options but for "Please select". This did not change the fact that leaving the "Please select" option selected did not prevent one from clicking on "Next" and going onto the next page.

<dropdown t1f1>
/ caption = "Wie wichtig oder unwichtig ist Ihnen, ob in Deutschland ein Verschleierungsverbot
eingeführt wird oder nicht?"
/ options = ("Please select", "Sehr unwichtig", "Moderat unwichtig", "Leicht unwichtig", "Weder wichtig noch unwichtig," "Leicht wichtig", "Moderat wichtig", "Sehr wichtig")
/ optionvalues = ("0", "1", "2", "3", "4", "5", "6", "7")
/responsefontstyle = ("Arial", 2%)
/ subcaptionfontstyle = ("Arial", 2.3%, false, true, false, false, 5)
/ required = true
/ validresponse = ("Sehr unwichtig", "Moderat unwichtig", "Leicht unwichtig", "Weder wichtig noch unwichtig," "Leicht wichtig", "Moderat wichtig", "Sehr wichtig")
</dropdown>


Any ideas how I could make dropdown items mandatory too? Thank you very much!


Best wishes,

Marton

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: 104K
Is your Inquisit installation up to date? AFAIK, this

> The answer "Please select" is already prechosen

was an issue specific to some older OSX versions (10.7.x) and should not happen w/ the current Inquisit release (4.0.5.0). Can you confirm?

implicitexplicit
implicitexplicit
Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)Esteemed Member (1.6K reputation)
Group: Forum Members
Posts: 9, Visits: 25
Indeed, wonderful. That was all, an old version. Thank you Dave once again for your amazing support!

Rob
Rob
Partner Member (643 reputation)Partner Member (643 reputation)Partner Member (643 reputation)Partner Member (643 reputation)Partner Member (643 reputation)Partner Member (643 reputation)Partner Member (643 reputation)Partner Member (643 reputation)Partner Member (643 reputation)
Group: Forum Members
Posts: 6, Visits: 74
Dave - Wednesday, April 16, 2014
Is your Inquisit installation up to date? AFAIK, this

> The answer "Please select" is already prechosen

was an issue specific to some older OSX versions (10.7.x) and should not happen w/ the current Inquisit release (4.0.5.0). Can you confirm?

Hi Dave,

i know this post is old, but I stumbled upon this. I want the exact opposite, subjects need to indicate a number (e.g. how many cigarettes do you smoke per day) using a dropdown question, and I want to have the "0" as default value that gets entered to the data file when nothing gets chosen.
Is there a way to do this?

Kind regards,

Rob

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: 104K
Rob - Tuesday, September 12, 2017
Dave - Wednesday, April 16, 2014
Is your Inquisit installation up to date? AFAIK, this

> The answer "Please select" is already prechosen

was an issue specific to some older OSX versions (10.7.x) and should not happen w/ the current Inquisit release (4.0.5.0). Can you confirm?

Hi Dave,

i know this post is old, but I stumbled upon this. I want the exact opposite, subjects need to indicate a number (e.g. how many cigarettes do you smoke per day) using a dropdown question, and I want to have the "0" as default value that gets entered to the data file when nothing gets chosen.
Is there a way to do this?

Kind regards,

Rob

You should be able to set zero as the default response via the <dropdown>'s /defaultresponse attribute.

<dropdown mydropdown>
/ caption = "Pick a number:"
/ options = ("0", "1-5", "6-10", "more than 10")
/ defaultresponse = "0"
</dropdown>

<surveypage mypage>
/ questions = [1=mydropdown]
</surveypage>

<survey mysurve>
/ pages = [1=mypage]
</survey>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search