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



Form Tools
No empty fields on HTML / Printer-friendly view - 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: No empty fields on HTML / Printer-friendly view (/showthread.php?tid=498)



No empty fields on HTML / Printer-friendly view - DanceArt - Feb 5th, 2010

I am working on a registration system for a large festival. The form has about 50 fields (performances). Each participant will be able to choose 10.
I want to use the HTML / Printer-friendly view to give each participant an overview of their choices. The problem is that this overview shows not only the 10 selected performances, but also the 40 performances that were not chosen.
Is there a possibility to create the HTML / Printer-friendly view without the empty fields listed?
In the email template (omit empty fields), this works very well:

{if $ANSWER_xxxx}
<tr>
<td style="font-weight: bold">xxxx</td>
<td>{$ANSWER_xxxx}</td>
</tr>
{/if}

Would there be a way to have the same happening in the Printer Friendly View?


RE: No empty fields on HTML / Printer-friendly view - Ben - Feb 6th, 2010

Hi DanceArt,

Sure! Presumably the clients are checking a field to indicate their preference? If so, no problem. What you could do is just create a View for your form that had a standard filter set up that would limit the results returned to "chosen == yes" or something - whatever your field is. You could then call the View "Selected Performances" which would appear as a dropdown in the top right of the page.

When they're browsing the admin section they could just select the Selected Performances option in the dropdown and they use the Printer-friendly page to display those - and only those - performances they were interested in.

Hope this makes sense..

But here's a couple of links which may help out:

Overiew of Views:
http://docs.formtools.org/userdoc/?page=views

Views -> Standard filters:
http://docs.formtools.org/userdoc/?page=standard_filters

Hope this helps!

Ben


RE: No empty fields on HTML / Printer-friendly view - DanceArt - Feb 7th, 2010

Thanks a lot Ben!

I will try this and I'm sure I'll understand while trying.

Aat