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.

After Submit, go to URL from Checkbox

  1. stacker02
    Member

    I am trying to figure out if I can do the following. I am wanting to get the name and email of potential donors and have them check the option of the type of support they want to do.

    Depending on the support options (which are 4) you will be taken to a URL or pass data.

    1) go to website
    2) download a PDF
    3) go to website
    4) show mailing address

    http://whereintheworldarethetarantinos.com/support/

    Is this possible?

    Posted 12 years ago on Thursday November 10, 2011 | Permalink
  2. Gravity Forms does not currently support conditional confirmations. So you can't show a different confirmation based on a field selection. This is a feature we plan on adding in the future and is most definitely on our to do list.

    It can be done now, however it can only be done as a customization. You'd have to write your own custom PHP page that you redirect the form to and pass the field value for the field that determines where to send the user via the query string. Then that custom PHP page page would then need to redirect where you want to send the user based on the value.

    So it can be done but only as a customization.

    Posted 12 years ago on Thursday November 10, 2011 | Permalink
  3. stacker02
    Member

    Thanks for the feedback. I went ahead and set the custom PHP page and it works...

    BUT...

    I have it setup to email the user a confirmation email and I am getting a server 500 error when Ihave this set.

    What could be causing this?

    If I don´t set it to send an email, no problems... (currently set not to email people)

    http://whereintheworldarethetarantinos.com/support/

    here is the PHP code

    <?php $support = $_GET['support']; ?>
    <?php if ($support == 'pledge')  { ?>
    <?php  header( 'Location: http://worldmissions.ag.org/agwm_commit_form.cfm?AcctNo=294344'; ) ;?>
    <?php } elseif ($support == 'credit')  {?>
    <?php  header( 'Location: http://ag.org/contributorservices_PDF/CRCDAUTH.pdf'; ) ;?>
    <?php } elseif ($support == 'online')  {?>
    <?php  header( 'Location: https://secure1.ag.org/contributions/detail.cfm?LedgerID=74693978-2aff-4cee-ab68-e98d6bc9edf6'; ) ;?>
    <?php } elseif ($support == 'check')  {?>
    <?php  header( 'Location:  http://goo.gl/OI0XD'; ) ;?>
    <?php } ?>
    Posted 12 years ago on Friday November 11, 2011 | Permalink
  4. I'm not entirely sure what you are saying the issue is. So you have your form set to redirect to this custom page when it's submitted and when you submit the form you are getting a 500 server error? Can you explain in more detail?

    Posted 12 years ago on Friday November 11, 2011 | Permalink
  5. stacker02
    Member

    What was happening was on my form I had the notifications set to email the administrator as well as send a follow up email to the user who registered.

    If I had both set, I would receive 500 errors.

    But if I disabled either administrator email or user email then it works. So for some reason it´s not letting me do both.

    Posted 12 years ago on Monday November 14, 2011 | Permalink
  6. Can you export your form please and email it to me at chris@rocketgenius.com and confirm that this is the only code in your functions.php that affects this form? If you need to, attach your whole functions.php as well, and I will take a look at it for you.

    Posted 12 years ago on Monday November 14, 2011 | Permalink
  7. Two things.

    1) Remove the query string and merge tag from the URL. It should look like this:
    http://whereintheworldarethetarantinos.com/be2012/support.php

    2) Update your query string to this:
    support={Type of Support:4}

    Just add the "support=" to the beginning or what is there. So the URL in the address bar will be:
    http://whereintheworldarethetarantinos.com/be2012/support.php?support=pledge (or online, or credit, or check)

    I just tested all four strings and your support.php redirect file is working properly. Just watch the address bar and see what happens when you try various query strings or URLs.

    Posted 12 years ago on Thursday November 17, 2011 | Permalink