Page 1 of 1
Need to clear a file upload widget content
Posted: Tue Feb 25, 2014 1:39 pm
by siavash
Hello
Is there any way to clear the content of file upload widget other than using the "Clear" link inside the widget?
I would like to clear it using Javascript codes. I couldn't find any APIs in your online documents to do that.
Thanks in advance
Re: Need to clear a file upload widget content
Posted: Tue Feb 25, 2014 2:15 pm
by David
Looks like there is not a way to do this, currently. The 'clear' function that is called from the link is not exposed to users. We've not had anybody ask before, but we think it's a good idea to expose it. We'll look at doing that for a future update.
Re: Need to clear a file upload widget content
Posted: Tue Feb 25, 2014 4:32 pm
by siavash
Ok. Thank you
Re: Need to clear a file upload widget content
Posted: Mon Mar 24, 2014 1:33 pm
by David
We did add an API for this which will be available in our next release.
You'd use it like this:
Code: Select all
getObj("FileUpload1").fileUpload.clear();
There will be a page for this in our documentation Wiki once the release is available.
Re: Need to clear a file upload widget content
Posted: Mon Mar 24, 2014 2:46 pm
by siavash
Awesome. Thank you
Re: Need to clear a file upload widget content
Posted: Tue Mar 25, 2014 6:30 pm
by David
Re: Need to clear a file upload widget content
Posted: Wed Mar 26, 2014 9:31 am
by siavash
Works perfect.
Thank you