Question Events clearing Uploads
Last Post 07-14-2010 07:22 AM by Ryan Bakerink. 5 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
McClain SUser is Offline
new to the springs
new to the springs
Posts:1
Avatar

--
07-25-2008 09:54 AM

    I'm working on a form with several options; dropdowns, radio buttons, etc. Near the top of the form I have given users the option of attaching a document.

    Later in form I have a few selections that are question events; i.e. if they check a certain box it then asks them a more specific question.

    My problem is that when the page shows the event question it clears out any information they had in the file attachment / upload option.

    Are question events forcing a page refresh?

    What are my options, other than putting the upload option at the very bottom? I've dealt w/ Postbacks in ASP but never w/ DNN modules.

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    07-31-2008 10:29 AM
    Hi. Unfortunately there is no current work around for this situation for now (other then moving the form field past the question events).The problem is that with the file upload HTML control, you are not allowed to (via code) keep or set the value. This is a security related issue and if you google 'settings HTML file upload control' you will see several topics related to it.

    We are working on a solution though... Something similar to how the latest IMAGE control works. There will be an option to 'Auto Preview' but instead an 'Auto upload', this way as soon as the user selects the file it will validate it, upload it, and replace the file upload control with a link instead of the file upload button. This will then continue to keep its viewstate / value throughout the session regardless of question events or other postbacks. We should have this within the next release (hopefully). We are right in the middle of development so woefully not far off.


    -Chad
    Curtis EidsonUser is Offline
    river guide
    river guide
    Posts:98
    Avatar

    --
    07-13-2010 01:56 PM
    Hi Chad-

    We are running the latest version of Dynamic Forms and this still appears to be a problem.  The solution you have suggested sounds fantastic.  Any way to get this implemented?  This post is over a few years old so there may have been other issues?

    thanks,
    Curtis
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    07-13-2010 02:48 PM
    Hi Curtis... Not yet, file upload fields must be uploaded before any post back can occur. Once we add some enhancements to upload them (or optionally upload them) right away on each individual field that will be a good start but it has turned out to be a pretty tricky situation. IF you google or look around at any HTML File Upload Field after postback you will see many threads on the web about this... Some day though

    -Chad
    Curtis EidsonUser is Offline
    river guide
    river guide
    Posts:98
    Avatar

    --
    07-14-2010 06:34 AM
    Thanks for the update.  I vote for this to be added/updated soon!
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    07-14-2010 07:22 AM
    Hello Curtis,

    Thank you for your input.

    If you ever have any questions or comments, please feel free to ask.

    Thanks,

    Ryan


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi