The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
omit some submission data on thanks page - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: omit some submission data on thanks page (/showthread.php?tid=1173)



omit some submission data on thanks page - slabadoo - Apr 13th, 2011

How do I omit some submission data on thanks page. I am passing data onto the thanks page on submit but I need to omit one of the forms data so it does not show up on the thanks page.



RE: omit some submission data on thanks page - Ben - Apr 30th, 2011

Hi Slabadoo,

Sorry for the wait! How are you generating the output on the thankyou page? That's the part that probably will need to be doctored... you could just tweak that code, or (if it's a POST form and you've configured it to pass on all fields), just go to the Edit Form -> Fields tab and uncheck the "Pass On" checkbox for the field that you don't want.

Good luck! Smile

- Ben


RE: omit some submission data on thanks page - slabadoo - May 2nd, 2011

Hi Ben,

I am generating it via this in my thanks.php page:

PHP Code:
<?php
require_once("XXX/global/api/api.php");
?>

Then where I want the output on my thanks.php page, I have this:

PHP Code:
<?php
if (isset($_GET["submission_id"]) && isset($_GET["unique_key"]))
{
  
$form_id 1;
  
$view_id 1;
  
$export_type_id 2;
 
  
$submission_info ft_api_get_submission($form_id$_GET["submission_id"]);
 
  
// now confirm that the unique_key matches
  
if (isset($submission_info["unique_key"]) && 
    
$submission_info["unique_key"] == $_GET["unique_key"])
  {
    
ft_api_show_submission($form_id$view_id$export_type_id$_GET["submission_id"]);
  }    
}
?>

I am not sure if the pass on feature works for what I am trying to do becuase if I pass on it in the formtools I imagine it wont show in the submissions. Any ideas?
Thanks,
Slabadoo


RE: omit some submission data on thanks page - Ben - May 5th, 2011

Ah, gotcha!

Since you're using the API function to display the submission, you can actually just customize what appears on your thankyou page directly through Form Tools.

Note that the second parameter being passed to the ft_api_show_submission() function is the $view_id. Views lets you pick and choose whatever fields you want to see, just by going to Edit Form -> Views -> Edit View -> Fields tab.

So what you can do is create a new View for your form that contains whatever fields you want to appear on this page. After that's created, go to the Edit Form -> Views page and make a note of the View ID. Lastly, go back to that code and change the value of the $view_id.

That should be it! Let me know if you run into problems. Smile

- Ben