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
Need to clear a file upload widget content
-
- Profound User
- Posts: 30
- Joined: Mon Apr 01, 2013 9:50 am
- First Name: Siavash
- Last Name: Askari
- Company Name: Erb Transport
- City: New Hamburg
- State / Province: Ontario
- Country: Canada
- Contact:
Need to clear a file upload widget content
Siavash Askari
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Need to clear a file upload widget content
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.
-
- Profound User
- Posts: 30
- Joined: Mon Apr 01, 2013 9:50 am
- First Name: Siavash
- Last Name: Askari
- Company Name: Erb Transport
- City: New Hamburg
- State / Province: Ontario
- Country: Canada
- Contact:
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: Need to clear a file upload widget content
We did add an API for this which will be available in our next release.
You'd use it like this:
There will be a page for this in our documentation Wiki once the release is available.
You'd use it like this:
Code: Select all
getObj("FileUpload1").fileUpload.clear();
-
- Profound User
- Posts: 30
- Joined: Mon Apr 01, 2013 9:50 am
- First Name: Siavash
- Last Name: Askari
- Company Name: Erb Transport
- City: New Hamburg
- State / Province: Ontario
- Country: Canada
- Contact:
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
-
- Profound User
- Posts: 30
- Joined: Mon Apr 01, 2013 9:50 am
- First Name: Siavash
- Last Name: Askari
- Company Name: Erb Transport
- City: New Hamburg
- State / Province: Ontario
- Country: Canada
- Contact:
Who is online
Users browsing this forum: No registered users and 3 guests