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.

A different response (letter to client) for each of the different checkboxes.

  1. Hi. People who come to our site and want to Contact Us, have 5 options (check boxes) to choose from to get additional information:
    http://www.chl-pacific.org/contact-us

    We want to be able to set up 5 different email letter responses depending on the checkbox they choose. What are the precise steps to set up specific responses?

    thanks! jim

    Posted 13 years ago on Wednesday October 19, 2011 | Permalink
  2. Can they pick more than one check box? If they do, what happens with the notification? Or are the options exclusive? Also, what should happen in the notification if they don't pick any check box? I see the field is not required.

    Posted 13 years ago on Wednesday October 19, 2011 | Permalink
  3. Hi Chris, I now realize I need to give them radio buttons - one choice - and make it a required field. Once I do that, in a few hours, how do I set specific response letters to specific choices? tks.

    Posted 13 years ago on Wednesday October 19, 2011 | Permalink
  4. OK good, radio buttons.

    You can use the gform_pre_submission_filter to change the confirmation message based on the selections they've made. I did something similar to that here, but it was using check boxes, and the download links for different PDFs were just added to the confirmation (so, you could have one, two or three links in the email.)

    http://gravity.chrishajer.com/request-a-brochure/

    The code for that is here:
    http://pastebin.com/CwsM2FjF

    The process will be to check the value of the radio button input, then use a switch/case or other type of logic to craft your autoResponder (which is what the user notification is called.)

    Let us know if you need any help once you get into it.

    Posted 13 years ago on Wednesday October 19, 2011 | Permalink
  5. I wanna do something similar. Users should get different emails (auto-responders) based o their choice from a dropdownfield. I guess that´s more or less the same like the example with the pdf but where do I need to enter this code?

    Posted 13 years ago on Friday October 21, 2011 | Permalink
  6. Hi, I'm back and still confused. People come to visit our site and there are 5 different types of things they could want from us. They can choose from a pull-down menu what they want. Each of the 5 options has 5 different responses (5 different response emails). Is there a simple way (non-text coding) to just attached each response email (not a PDF, just normal text) to each pull-down option? Can you please make a version of this desired action on your new Demo page? Tks.

    Posted 13 years ago on Monday December 5, 2011 | Permalink
  7. The only non-code way I can think of doing it is the have a hidden field in the form. That field would use conditional logic and be included in the entry based on the selection of one of 5 choices. That way, it's stored in the entry, and you can insert it into the notification using the merge tag.

    This would not be ideal, making it part of the entry, but it's the only non-code way I can think of doing it.

    Posted 13 years ago on Monday December 5, 2011 | Permalink
  8. Chris, this wouldn't really work since hidden fields don't have conditional logic, correct? Or am I missing something?

    Posted 12 years ago on Wednesday January 25, 2012 | Permalink