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.

questions on closed posts

  1. My first question is on the following post about limiting the number of checkboxes that someone can choose. http://www.gravityhelp.com/forums/topic/limiting-the-amount-of-checkboxes-that-can-be-checked
    In that post we are given some jquery code. Where do I put that code?

    Second is a continuation of my previous post about sending emails to various recipients based on their answer. http://www.gravityhelp.com/forums/topic/conditional-logic-to-send-emails
    Now, if someone chooses one topic, an email will go out correctly. If they choose more than one topic, how do I have the email go to person 1 and 2 for choice 1 and person 2 and 3 for choice 2?

    Thanks

    Posted 12 years ago on Thursday April 12, 2012 | Permalink
  2. jQuery is always going to be placed at the theme level, either in an existing scripts file you may have with other functions or a new script file altogether that is included in your head or on the specific page template in question.

    For the conditional logic, can you show a visible representation with that one. How far have you got on your routing rules so far?

    Posted 12 years ago on Thursday April 12, 2012 | Permalink
  3. Rob,

    Thanks. The page I'm working on is here - http://iitconf.2techgirls.com/speakers/call-for-speakers/
    The last question is the one that is giving me trouble. There are seven session tags. All of the routing rules are in place and work perfectly if someone chooses one session topic. Since they are allowed to choose up to three, I need the email to go to the various people based on two or three people. Currently if they choose more than one, the email goes to the people listed based on their first choice.

    I appreciate your help on this.

    Kris

    Posted 12 years ago on Thursday April 12, 2012 | Permalink
  4. I just did a quick test here and it worked great on what you are trying to do with the routing. Can you send me a WP login to rob@rocketgenius.com so I can take a look.

    Posted 12 years ago on Thursday April 12, 2012 | Permalink
  5. Kris, check out your first line of your routing rules, you are missing a comma after an email address towards the end of the list. See if that solves your problem.

    Posted 12 years ago on Thursday April 12, 2012 | Permalink
  6. Rob, it looks like the form is working correctly now. Commas can make such a difference :-)

    I still do have a question however on the code to place in the functions.php file. I pasted in the code, but get an error message about an unexpected < character on the first line of that code. I also tried it without the first like of <script type....> and without the last line. That gave me another error massage. Can you tell me how this should be placed in the functions.php file?

    Thanks.

    Posted 12 years ago on Thursday April 12, 2012 | Permalink
  7. Sorry, you might have misunderstood, you don't put scripts in the functions.php file. You need to create a separate JS file (unless your theme already has one you can add to) and then reference it in your theme.

    Posted 12 years ago on Thursday April 12, 2012 | Permalink
  8. OK, thanks.

    Posted 12 years ago on Friday April 13, 2012 | Permalink