The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Weird Spaces and Line Breaks in {$FIELDNAME} - 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: Weird Spaces and Line Breaks in {$FIELDNAME} (/showthread.php?tid=4570)



Weird Spaces and Line Breaks in {$FIELDNAME} - 1PUTTS - Aug 29th, 2014

Having a weird problem that is causing all kinds of grief. I'm trying to output the form data to an email in my own kind of comma deliminated format.

Problem is, I'm getting an unwanted space before a specific group of {$FIELDNAMES} and an unexpected line break after said {$FIELDNAMES}.

If it helps, this is only happening to {$FIELDNAMES} where the original form has default placeholder text. The ones that don't are behaving properly.

I'm beginning to think having the default values in some fields are more trouble than they are worth, as far as Formtools goes. It is nice because I don't need to label each field...but, if my suspicions are correct, it seems to be causing all sorts of issues.

How would I go about checking what values are REALLY in the fields in question? Looking at them in Form Tools, they look fine.

UPDATE: OK, I don't think it is the default values. I submitted a form directly using Form Tools and I'm still getting the same weird behaviour. Weird. Well I'm stumped...


RE: Weird Spaces and Line Breaks in {$FIELDNAME} - Joe - Sep 2nd, 2014

Try looking at the data directly in the database and see if there is any data in the field.

Cheers,

Joe


RE: Weird Spaces and Line Breaks in {$FIELDNAME} - 1PUTTS - Sep 9th, 2014

Thanks for the suggestion but, yes, I've looked at the data directly and there are no weird spaces or line breaks. And the empty fields are indeed empty.


RE: Weird Spaces and Line Breaks in {$FIELDNAME} - 1PUTTS - Sep 12th, 2014

Similar to my other problem with empty fields not being recognized as empty while using the email templates, I also noticed the extra space and linebreak only happens when the field is a textarea. If it's a textbox, it's fine.

My solution to the above problem: change all the textareas to textboxes in the edit form > fields tab. Even though they are textboxes on the actual form. Not very elegant but it worked. I'll take it as a win for now.