Welcome, Guest
Username: Password: Remember me

TOPIC: Do not allow answers based on previous answers

Do not allow answers based on previous answers 1 month 2 days ago #111741

  • andogro
  • andogro's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hello
I am creating a survey where some questions have answers that should not be allowed based on previous ones. For example:

A. How many close friends do you have
1. 0
2. 1
3. 2
4. 3-5
5. 6-10
6. More than 10

B. How many are female?
1. 0
2. 1
3. 2
4. 3-5
5. 6-10
6. More than 10

For Question B, I need to not allow the answer to be higher than the previous question. Is there an easy way to do this with conditions?

Thanks
Andy
The administrator has disabled public write access.

Do not allow answers based on previous answers 1 month 2 days ago #111743

  • trivender
  • trivender's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 142
  • Thank you received: 6
  • Karma: 6
This can be done question validation equation in question settings. Something like below.

B.NAOK <= A.NAOK
Trivender Singh
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.

Do not allow answers based on previous answers 1 month 2 days ago #111745

  • andogro
  • andogro's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thank you for the response - I'm glad to know it can be done. Can you give me a more specific example of what the code might look like? I see the relevance equation area for the question and already have some conditions set there, but am wondering how I would code.

In a similar vein, I have other questions that are type in answers - for example "How old were you the first time you smoked cigarettes" and the second question is "How old were you when you started smoking a pack a day". The second question must be equal or greater than the first.
Last Edit: 1 month 2 days ago by andogro. Reason: needed to add more
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.102 seconds
Donation Image