The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
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. |