PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Product Questionnaire - product suggestions based on answers

  1. Agent8
    Member

    Hi,

    I've had a search but can't find anything similar. Please point me in the right direction if I've missed something.

    Basically I'd like to achieve a form that includes a number of questions about health conditions (yes/no answers) and then dependent on the answers provide a results "suggestions for products to purchase" page after the results are submitted.
    E.G.
    Q1: Do you suffer from dry skin? Yes
    Q2: Do you have arthritis? No

    Then on the following results page it would say:
    Dry skin: ABC Lotion would help with this (link)

    The answers that are negative would mean they don't need to see the content related to the question. Only the products that relate to their answers.

    Your help would be appreciated.

    Thanks,
    Nick.

    Posted 9 years ago on Monday August 6, 2012 | Permalink
  2. Agent8
    Member

    Sorry to bump this up but I've not had any response.

    If anybody can help on this topic it would be appreciated. Currently I've paid for the plugin but have not found out how I'm going to achieve what I need to do.

    Thanks,
    Nick.

    Posted 9 years ago on Wednesday August 15, 2012 | Permalink
  3. I'm sorry we inadvertently overlooked your topic.

    What you want to do will require a little bit of customization. Can you explain more about how the choices made in the form affect the product recommendations (i.e. are any of the questions linked, for example, if you have arthritis but are allergic to something, you get one product recommendation, and if you're not allergic you get another recommendation)? Do you have an example of this functionality online somewhere now?

    Depending on the complexity, we should be able to help you with a solution, or at least point you in the right direction with some good information. Thank you.

    Posted 9 years ago on Wednesday August 15, 2012 | Permalink
  4. Agent8
    Member

    Thanks for the response Chris.

    Sorry I don't have an example online for this.

    My main aim is to do a simple set of yes/no questions (approx 15) which do not relate to each other.

    So it's reasonably simple. If out of the 15 questions you answer yes to three of them you'll get product content relating to those 3 illnesses. The content for the other 12 products will not be shown. There does not need to be comparison of the results or filtering.

    I understand the functionality of what you are suggesting would be more powerful. But if someone wants to say they have 15 specific conditions the content delivered will talk about the illness and explain what products help and why. For legal reasons it can't be too specific in terms of diagnosing and coming up with a bespoke solution. Hopefully this makes sense.

    Ideally I'd look to use a plugin like Smart WYSIWYG Blocks of Content and their shortcodes. That way my client can edit the content delivered from the form in an easy manner.

    Thanks,
    Nick

    Posted 9 years ago on Wednesday August 15, 2012 | Permalink
  5. Are there 15 products as well? So each yes answer corresponds to a specific product?

    Posted 9 years ago on Wednesday August 15, 2012 | Permalink
  6. Agent8
    Member

    The number of products may vary. Depending on answering yes or no to the questions the results page will show content about the problem and suggested products to help. Here is a short example:

    Questions:
    Q1. Do you have back pain? Yes
    Q2. Do you have aching joints? No
    Q3. Do you suffer from migraines? Yes

    Results:
    Paragraph about back pain, symptoms, causes. Suggest product A and product B.
    Paragraph about migraines, symptoms, causes. Suggest Product A and product C.

    The negative answer to Q2 just means the content is not shown. The above would just need expanding to cover 15 questions.

    Nick

    Posted 9 years ago on Thursday August 16, 2012 | Permalink
  7. This is starting to get more complicated than we can provide solutions for in the support forums. Please see this post for how it's been accomplished in the past. You can adapt the process shown here to your situation.

    http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms

    Posted 9 years ago on Thursday August 16, 2012 | Permalink
  8. Agent8
    Member

    Thanks for your response Chris. I'm sorry, I may not have explained clearly.

    All I need is for a results page to show or not show a bit of content based on the users input to the form.

    I don't need any complex maths performed. Simply a case of the user answered yes to Q1 so show content. Then this needs to happen for each question. None of the questions or results relate to each other. Each question is completely separate and do not influence each other.

    Is it achievable to do a single question in a form and then on the resulting page that loads up show content A if the answer was true and show content B if answer was false?

    That's what I need to do for each 15 questions in a results page. I've looked at the link you provided. It appears to be for a quiz with complex scoring which requires maths. I purely need a yes/no option for each question. If they answer yes then show this. If they answer no then don't show anything.

    I understand you've got limited time for customization like this but I believe what I'm trying to do is a lot simpler than the complex maths post you referenced. I wouldn't know how to take this and alter it to try and fit this task.

    Thanks,
    Nick.

    Posted 9 years ago on Friday August 17, 2012 | Permalink
  9. Agent8
    Member

    Ok on further looking can I use the Query string to achieve this? Carry across the results this way and then somehow use PHP if statements to display relevant content?

    Posted 9 years ago on Friday August 17, 2012 | Permalink
  10. I would stay away from the query string, although that approach will also work.

    You're right though it's simpler than what I wrote up back then. And additionally, since then, conditional shortcodes have been introduced. Please see the documentation here:

    http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode

    There are some very clear examples on the bottom of that page,. In your form, the confirmation will be a whole bunch of these conditional shortcodes, one for each product, showing content only when a condition was marked as "Yes". Please let us know if you have more questions after looking that documentation over. If you need more specific assistance, we're going to need to see a copy of the form.

    Posted 9 years ago on Saturday August 18, 2012 | Permalink