PDA

View Full Version : File Textfile not being reset



ryanslade
7 Apr 2008, 1:48 AM
Hi

I've created a simple form that includes a TextField with an inputType of 'file'.

When I do a form.form.reset(), all fields are cleared except the file field. Anyone know a way around this?

Thanks
Ryan

evant
7 Apr 2008, 2:01 AM
File inputs are read only, see here: http://www.webdeveloper.com/forum/archive/index.php/t-31069.html

ryanslade
7 Apr 2008, 4:36 AM
I don't need to set the value to anything, I just need to reset it. Shouldn't resetting the form work? The link you sent claims that this should work:

"You can't modify the value of the input whose type is "file." You can clear it, by using the normal "reset" form button."