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.

pre_submission_filter - Error

  1. A while back, you guys helped me make a redirect which I never quite got working. Now, it's the last thing before we go live with our new site. We need the redirect to offer a different 30-day trial depending on which product they choose. The form is here;
    http://vit-sandbox.com/forms/try-it/

    There error I get is:
    Fatal error: Call to undefined function add_filter() in /home/vitsandb/public_html/wp-content/themes/vi/gform_redirect.php on line 3...
    Help!

    The first few lines of the form of the gform_redirect.php file are:
    <?php

    add_filter('gform_pre_submission_filter_2', 'custom_redirect_url');
    function custom_redirect_url($form){

    $condition = RGForms::post('input_7');
    if(!$condition)
    return $form;

    $form['confirmation']['type'] = 'redirect';
    switch($condition){
    case 'pdf2image':
    $form['confirmation']['url'] = 'http://www.visual-integrity.com/downloads/current-pdf2image.exe';
    break;
    ....
    I can send a paste of the file or you can login and take a look. Let me know what's best. Thanks a million for your great plug-in and or your help...
    jean

    If someone can login and and take a look, I'd be grateful.

    Posted 12 years ago on Monday March 26, 2012 | Permalink
  2. What sort of turn-around should I hope for on this? It's a bottle-neck to our site going live. Any chance someone could look at it for me today? Thanks a ton! let me know what you need, if anything...

    Posted 12 years ago on Monday March 26, 2012 | Permalink