[ 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_type , FH_NOT_EMPTY , true );
?>
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_type , FH_NOT_EMPTY , true );
?>
Erik
27 April 09 / 14:06
Simple but effective, it's working now, thanks!