The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
How to have FT display a default value when nothing is entered in a field - 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: How to have FT display a default value when nothing is entered in a field (/showthread.php?tid=2013) |
How to have FT display a default value when nothing is entered in a field - waizen - May 22nd, 2012 Hello, all: I have a situation where the data from a form needs to be added into another program (Act, I believe). The thing is, when a site visitor doesn't enter anything into a field, the system displays the value as nothing (leaves it blank in the database). Act needs to have something in its fields, so my client has, historically, been manually entering a 0 (zero) into the corresponding blank fields in the Act program. So, I'm looking for a way to have Form Tools automatically produce (output) a number zero from any given field when a site visitor fails to enter anything into that given field (or checkbox, etc). Having all fields set as mandatory in the web page is not an option in this case. Is there some easy way to do this in Form Tools that I'm not aware of? Thank you in advance. Using Form Tools 2.0.0 |