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.

Re-captcha not working with gform_field_value_ filter.

  1. I have a form set up to replace the multisite registration process, fairly standard. It has a re-captcha field. The one thing it does that deviates from the norm, is that it generates the username randomly with a filter much like this:

    add_filter( 'gform_field_value_my_custom_field_name', 'gform_field_value_my_custom_field_name' );
    function gform_field_value_my_custom_field_name( $value ){
      error_log( "GForm Filter Triggered" );
      while( !$value ) :
        $value = 'textstring' . sprintf( "%05d", rand(0,99999) );
      endwhile;
      return $value;
    }

    This works without the re-captcha. However, with it on, the filter does not run.

    Posted 12 years ago on Thursday July 12, 2012 | Permalink
  2. David Peralty

    I've sent a note to the developers. Which versions of WordPress and Gravity Forms are you using and can you send an XML export of your form and your functions.php file to peralty@rocketgenius.com ?

    Posted 12 years ago on Thursday July 12, 2012 | Permalink
  3. Hi, Miramedia,

    Were you able to figure out your issue? If not, can you provide us with the information David requested, or even a WP admin login so we can check out the form setup ourselves? I would like to try and reproduce the issue you are having, but I am flying blind here with not knowing the form setup and the functions in use.

    Thanks.

    Posted 12 years ago on Wednesday July 18, 2012 | Permalink