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.

Using conditional logic to 'qualify'

  1. GFujioka
    Member

    Hi all, looking for some help using the conditional logic to qualify a person for ownership of a particular breed of dog.

    So questions might be:
    1. Do you have a fenced yard?
    2. Are you able to devote at least 45 minutes per day to exercising your dog?
    3. Are you able to afford the estimated average $XXX veterinary costs per year?
    4. Do you intend to breed your dog?

    Answering "no" to questions 1 through 3 would disqualify you (per this breeder's standards), as would answering "yes" to question 4.

    I think I understand how to make a message appear if certain conditions are met, but how would you handle a list of say 10 questions - and hold off delivering the "result" until they had completed the form?

    Thanks very much for any assistance.

    Posted 11 years ago on Saturday February 23, 2013 | Permalink
  2. You will have to do this with PHP code in your theme's functions.php file. The conditional confirmation shortcodes won't wok for something with compound conditions like this.

    You would use the gform_confirmation filter: http://www.gravityhelp.com/documentation/page/Gform_confirmation

    I wrote up some code a while ago, before conditional shortcodes were available. Maybe the concept will help you: http://pastebin.com/EJEFYPW1

    Posted 11 years ago on Saturday February 23, 2013 | Permalink
  3. GFujioka
    Member

    Thank you very much. Admin can close topic.

    Posted 11 years ago on Saturday February 23, 2013 | Permalink

This topic has been resolved and has been closed to new replies.