Need to clear a file upload widget content

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
siavash
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

Post 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
Siavash Askari
User avatar
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

Post 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.
siavash
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:

Re: Need to clear a file upload widget content

Post by siavash »

Ok. Thank you
Siavash Askari
User avatar
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

Post 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.
siavash
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:

Re: Need to clear a file upload widget content

Post by siavash »

Awesome. Thank you
Siavash Askari
User avatar
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

Post by David »

siavash
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:

Re: Need to clear a file upload widget content

Post by siavash »

Works perfect.

Thank you
Siavash Askari
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests