Forum OpenACS Q&A: ad_form and empty values

Collapse
Posted by Kolja Lehmann on
I used ad_form to edit some data. When I change a field to an empty string, it still uses the old value, so I cannot change to empty_string. The code goes like this:

db_1row get_the_data ""
ad_form {
{my_field {value $field}}
} -on_submit {
# my_field is never empty
}

even if I add {my_field ""} to ad_page_contract it does not work. Any suggestions?

Collapse
Posted by Ola Hansson on