[html-formfu] value not accepted

Josef Chladek josef.chladek at gmail.com
Wed Sep 26 10:53:01 GMT 2007


hello again,

in my code:

my $nick = $c->stash->{form}->get_field('nickname');
$nick->value($c->stash->{form}->param('username')) if length($c- 
 >stash->{form}->param('nickname')) == 0;
$c->stash->{form}->process;
$c->log->debug($c->stash->{form}->get_field('nickname')->value);

in the debug output I can see that nickname is set to the username,  
when the form is rendered, the nickname field stays empty - what am I  
doing wrong?

thanks
josef

ps: thanks for the last answer with the postioning of fields...





More information about the HTML-FormFu mailing list