We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Logic gate sequence

Development and Programming

tigerchick's avatar
tigerchick
34 posts
15 years ago
tigerchick's avatar tigerchick

Hi, I’m new to expression engine and was just wondering if something is theoretically possible and how it might be achieved.

A potential project requires that we ask users a series of questions and pending the outcome of those questions generate pdf “advice” sheet. The really tricky thing is that depending upon the answer of each question, a different question will be next in the sequence of questions eg.

Are you a dog or a cat?

If answer = cat goto: How loud do you meow?

If answer = dog goto: How loud do you woof?

and so on an so on…

There would be a great many of these questions, with each one being illustrated with graphics and probably loaded with AJAX so as not to have to reload the page constantly.

I need a way of building this so that it is possible to keep easy track of the relations and outcomes between all these questions and so that it is flexible enough to introduce new questions and outcomes.

Is there some kind of E module that could do this or am I firmly in the realm of custom built stuff?

Thanks for your time..

       
MaxStoun's avatar
MaxStoun
21 posts
15 years ago
MaxStoun's avatar MaxStoun

Try to use something from http://devot-ee.com/search/results/search&keywords=question&channel=addons/ maybe http://devot-ee.com/add-ons/4-eequiz/

       
John Fuller's avatar
John Fuller
779 posts
15 years ago
John Fuller's avatar John Fuller

Why not just do the entire thing in JS? Or rather, a combo of JS and channel output if you needed it. Though JS might not be the best choice if you had to actually save these results to a DB.

I’m thinking you won’t be able to pull this off without a little bit of custom work though.

       
tigerchick's avatar
tigerchick
34 posts
15 years ago
tigerchick's avatar tigerchick

Thanks for both your replies - @MaxStoun, I did look through the devot-ee addons including 4-eequiz but didn’t really find something that quite matched the bill.

@John Fuller, I would unfortunately need to save the results in a database and so I think php and mysql is probably the way forward - I think you might be right about the need for custom work though!

It’s funny as it seems like a fairly straightforward requirement in some ways and yet I’ve not found any mention of anything similar anywhere on the web :(

       
Rob Sanchez's avatar
Rob Sanchez
335 posts
15 years ago
Rob Sanchez's avatar Rob Sanchez

I bet you can use SafeCracker for this.

       
tigerchick's avatar
tigerchick
34 posts
15 years ago
tigerchick's avatar tigerchick

Hi Rob, thanks for your reply. Forgive my ignorance - I’m new to Expression Engine - I had a look at Safe Cracker but I’m not really sure what it does?! What is a SAEF and how how Safe Cracker achieve what I’m looking for?

Once again apologies for asking what are probably obvious question…

       
tigerchick's avatar
tigerchick
34 posts
15 years ago
tigerchick's avatar tigerchick

Rob, I just noticed that you’re a lead developer on Safe Cracker - no one better to answer question than you I guess! 😊

       
Rob Sanchez's avatar
Rob Sanchez
335 posts
15 years ago
Rob Sanchez's avatar Rob Sanchez

I am the former lead developer, SafeCracker is now owned by EllisLab. SafeCracker allows you to create/edit channel entries on the front end of your site. Channel entries are the core content storage in ExpressionEngine. So for your project, you could store the user’s answer to each question, and then use template conditionals based on their answer to display the appropriate followup question.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.