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.

Filtering Admin Only Fields

  1. I'm trying to filter the values of fields that are admin only and it's just not happening.
    I've tried gform_replace_merge_tags, gform_pre_submission and maybe a couple of others... I've lost track.

    One example is

    add_filter('gform_replace_merge_tags', 'bmdo_merge_tags', 10, 7);
    function bmdo_merge_tags($text, $form, $entry, $url_encode, $esc_html, $nl2br, $format) {
    
        $state = '{site_state}';
        $link = '{post_link}';
    
        if($state == $text)
            return $entry["9.4"];
        elseif ($link == $text)
        	return 'http://www.bushcaresmajordayout.org/?p='.$entry["post_id"];
        else
    	    return $text;
    }

    None of them work, so I can only assume that it's because the two fields I'm trying to populate/modify are admin only.

    The form is http://www.bushcaresmajordayout.org/register

    Help greatly appreciated!

    Posted 11 years ago on Wednesday June 5, 2013 | Permalink
  2. I hate bumping threads, but I really need some help on this one.

    Posted 11 years ago on Wednesday July 3, 2013 | Permalink
  3. Handling via new support channel.

    Posted 11 years ago on Friday July 12, 2013 | Permalink

This topic has been resolved and has been closed to new replies.