Login Form

#69 – conditional branching

Posted in ‘BF Quiz’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 24 December 2013 07:46 AEDT
dnobendno
Joomla! version: 3.1

I need to take advantage of the conditional branching for this program. In some cases, I need the user to be redirected immediately upon giving certain answers. For example, if in Question 1 the user chooses answer A, they should be redirected to a final page telling them they are ineligible. If however the user selects B, they should continue to question 2. If they select C, they need to redirect to a different final page telling them they are ineligible (for a different reason). This needs to happen throughout the quiz. I have 20 different final pages that I need to use.

I does not appear I can use the ABCD matrix for this. I can redirect to other questions, but the question then has the next button at the bottom and if they click it, they move to the next question in order of ID.

Your assistance is appreciated thanks.
Dean
Tuesday, 24 December 2013 12:38 AEDT 10'
Tim
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Dean,
A next question id of -1 will terminate the quiz and take the user to the final page if a user selects that option. However, depending on how you are scoring the quiz, it may be difficult to determine that the user is ineligible at different points in the quiz. Maybe if you are using ABCD answer matrix, you could give that option a score of X, and then have an answer matrix that checks if the user has more than one X in their answer sequence, in which case show the ineligible page. The ABCD answer matrix are checked in order, so as soon as it finds a match it will stop, so put this one first.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Wednesday, 01 January 2014 04:31 AEDT
dnobendno
The problem I have is there isn't one final page. There are multiple reasons that someone might be ineligible or eligible, and in each instance they are given specific information that applies to their situation. So if someone isn't eligible because they are not a non-profit, they go to one page, but if they are ineligible because they are not in the US, they go to a different page. If they are eligible for cash-flow loans they go to a different page than if they are eligible for a needs based grant. It seems to me that I cannot use the ABCD matrix for that. All told, I probably have 40 unique end pages.

One option that occurs is to make question pages with no questions but rather the quiz results, and then have the next button on that page return to the front of the site, although that is not ideal. Please let me know if there is a better solution.

Thanks,
Dean
Wednesday, 01 January 2014 18:06 AEDT 5'
Tim
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Dean,
Perhaps you could try using the ABCD scoring with a different unique character for each -1 option that terminates the quiz. I know the alphabet only has 26 characters, but you could use some other characters like ə or ʊ, just avoid symbols such as $, %, & and anything else you'd expect to see in an SQL query.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top