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 "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
Receiving blank results on a required field - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18)
+--- Thread: Receiving blank results on a required field (/showthread.php?tid=5148)



Receiving blank results on a required field - jbosset - May 5th, 2015

We have a form using drop down selections. I set the fields as mandatory in Formtools 2.

We intentionally made the first choice a blank so that they would HAVE to make a selection. Appears this blank IS a selection.

How can I fix this so that they MUST chose a selection from the drop down, but there is nothing selected to start with.

Here what I have:

Course Title:<select name="Course_Title">
<option value=" "></option>
<option value="Torts I s2">Torts I 6:00 (Viselman)</option>
<option value="Torts I s3">Torts I 7:30 (Chang)</option>
<option value="Contracts II s2">Contracts II 6:00 (Shabani)</option>
<option value="Contracts II s3">Contracts II 7:30 (Shabani)</option>
<option value="Criminal Law">Criminal Law (Barreto)</option>
<option value="Legal Writing and Analysis">Legal Writing &amp; Analysis (Zunker)</option>
<option value="Constitutional Law I">Constitutional Law I (Zunker)</option>
<option value="Civil Procedure I">Civil Procedure I (Watkins)</option>
<option value="Criminal Procedure">Criminal Procedure (Barreto)</option>
<option value="Bar Review">Bar Review (Watkins)</option>

jeff.bosset@californiaschooloflaw.com