http://www.perlmonks.org?node_id=993944

anothersmurf has asked for the wisdom of the Perl Monks concerning the following question:

I have some code where default values for textfields() are supplied from a database.

I have occasion to call the app with a different value, but I want the different value to be ignored and the default value from the database to be used.

I've tried setting it with -override in the textfield() as well as calling param() to set it specifically, but the output on the webpage is always the POST-supplied information instead of the -value=>"db data".

Any idea on how I can make it listen to me?

For now I have forced a redirect so it pulls data from the database (as there is no supplied data). It works fine, but it seems like a hack. It seems like there should be a way for the form value to be programmed, ignoring the POST parameter.