Support Forums : Hiding a question based on age criteria

We encourage an open exchange of information. Ask your questions or make suggestions. We are here to help, but we also encourage all of you to help one another.
Click on the Subscribe Flag to be notified by email of replies to your post.
Current User: Guest Login Register
Please consider registering

Hiding a question based on age criteria

Add a New Topic Reply to Post
UserPost

4:42
January 10, 2008


Farrel

Member

posts 10

I am asking some sensitive questions which are not appropriate where the study subject is younger than 18 years. One of my questions is the subject’s date of birth. Another question is about whether the subject has ever been sexually active. I only want to ask the question if the value in the date of birth field is > or = 18 years before the current date.
Is survey gizmo able to do that. An inelegant work around would be to ask a separate question. Radio button: Is the subject 18 years or older yes/no. If no then it would hide the sensitive question.

7:00
January 10, 2008


Chad

Moderator

posts 686

Hi Farrel,
Yes, this can be done. It would require a custom script, which is a Pro and higher level feature.

We would also need to add some date/time functions to the custom script which could be done through our Professional Services. We can also include the creation of the custom script in our Professional Services quote.

Of course, your other method of asking the yes/no question is also perfectly valid and avaliable for you to use now.

Hope this helps!
Chad

12:51
January 12, 2008


marc

Member

posts 3

Hi Farrel,

I actually found a way to get this to work by asking their age in years rather than their DOB.

You can see it working here (adding an age over 49 raises a “red flag” about their headaches as can be seen in the subsequent message with piped info) :-

http://www.asktheneurologist.com/diagnosing-headache-type.html

The info is added as a real number allowing me to use the following logic which works:-

This page has Simple Show-When logic:

* This page will be hidden, unless: At what age did the current type of headache start? is greater than 49

Hope that works

Marc

8:14
January 14, 2008


Farrel

Member

posts 10

Thanks for the suggestion. I see that the software accomplishes straightforward logic with aplomb. Nevertheless, by asking age as a numeric or as a yes/no still means I have to have an additional question. Plus I cannot forgo the date of birth question since I need it anyway. I was hoping to elegantly use the data I already had. I am no programmer but I have noticed that date entry, date storage, date manipulation and date logic are frequently far more specialized issues to deal with than mere numerics.
If all I had to do to use date calculations was to move to the pro version then I would probably do it since I am about to do that anyway for other reasons. But when I read that it would require some additional scripting I decided that such elegance came with too high a price (money, time, hassle). The elegance enhancement would be minimal.
I am quite happy to stick to a question such as: Is the subject 18 years or older?

Add a New Topic Reply to Post


Reply to Topic: Hiding a question based on age criteria

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 8 + 10        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)