Login Retreive lost passwordRegister
Search

Forum Index / General / Validator FH_NOT_EMPTY is not working?

[ This topic is solved ]

  Erik 27 April 09 / 13:40  
Hi there,

I'm working with Formhandler from the beginning bud since the last update the validator 'FH_NOT_EMPTY' is not working anymore. I did not changed the source code.

This is the source code:
<?php
$factuur_type 
= array(
  
"0" => "-- Selecteer --",
  
"1" => "Standaard factuur (Particulieren)",
  
"2" => "Zakelijke factuur (Bedrijven)"
); 
$form->selectField("Type factuur ".$star."""type_factuur"$factuur_typeFH_NOT_EMPTYtrue);
?>


Hopefully somebody can help me solving this problem, thanks in advance!

Erik

  Johan Wiegel (Admin) 27 April 09 / 13:49  
Changed at 27 April 09 / 13:49
There has been a bug fix for the fh_not_empty.

in the past 0 was indicated as empty but in a text box 0 can be a value.

There for you should use a real empty value:

<?php
$factuur_type 
= array(
  
"" => "-- Selecteer --",
  
"1" => "Standaard factuur (Particulieren)",
  
"2" => "Zakelijke factuur (Bedrijven)"
); 
$form->selectField("Type factuur ".$star."""type_factuur"$factuur_typeFH_NOT_EMPTYtrue);
?>

  Erik 27 April 09 / 14:06  
Simple but effective, it's working now, thanks!

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license