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.

Custom Thank You - Confirmation Message - None

  1. Is it possible to disable the Thank You text completely? I don't want to redirect a page after submission, and I've got my own content for the thank you page itself but I don't want to stick it in that yellow div (or override the css there).

    I can override the confirmation message / type to "message" and an empty message value, but the div still shows. Any possibility you can slip in a quick check to see if the confirmation message is empty then not to show it?

    For example:

    public static function handle_confirmation($form, $lead, $ajax=false){
            if($form["confirmation"]["type"] == "message"){
                $anchor = apply_filters("gform_confirmation_anchor_{$form["id"]}", apply_filters("gform_confirmation_anchor", 0)) ? "<a name='gf_{$form["id"]}' class='gform_anchor' ></a>" : "";
                return "{$anchor}<div id='gforms_confirmation_message'>" . GFCommon::replace_variables($form["confirmation"]["message"], $form, $lead) . "</div>";
            }

    could be adjusted to be:

    public static function handle_confirmation($form, $lead, $ajax=false){
            if($form["confirmation"]["type"] == "message"){
                if(empty($form["confirmation"]["message"]))
                    return;
                $anchor = apply_filters("gform_confirmation_anchor_{$form["id"]}", apply_filters("gform_confirmation_anchor", 0)) ? "<a name='gf_{$form["id"]}' class='gform_anchor' ></a>" : "";
                return "{$anchor}<div id='gforms_confirmation_message'>" . GFCommon::replace_variables($form["confirmation"]["message"], $form, $lead) . "</div>";
            }
    Posted 13 years ago on Saturday January 29, 2011 | Permalink
  2. Makes sense Scott. I will try to add that in.

    Posted 13 years ago on Saturday January 29, 2011 | Permalink
  3. Awesome, thanks! For now, I'm slipping it into the latest release on my side, hopefully it remains but I'll add it to the list to double check before upgrading. You guys got the labels unescaped html now for fields right?

    Posted 13 years ago on Saturday January 29, 2011 | Permalink
  4. This patch didn't work for me and only re-showed the form. So I made the following edit that works great!

    public static function handle_confirmation($form, $lead, $ajax=false){
            if($form["confirmation"]["type"] == "message"){
    			if(empty($form["confirmation"]["message"]))
                    $msg_style = "style = 'display:none;'";
    			else
    				$msg_style ="";
                $anchor = apply_filters("gform_confirmation_anchor_{$form["id"]}", apply_filters("gform_confirmation_anchor", 0)) ? "<a name='gf_{$form["id"]}' class='gform_anchor' ></a>" : "";
                return "{$anchor}<div id='gforms_confirmation_message' ".$msg_style.">" . GFCommon::replace_variables($form["confirmation"]["message"], $form, $lead) . "</div>";
            }
    Posted 13 years ago on Wednesday February 9, 2011 | Permalink
  5. Hi guys,

    actually this didnt worked up why ??

    Posted 11 years ago on Monday April 15, 2013 | Permalink