1. #1
    Sencha Premium Member
    Join Date
    Jun 2009
    Posts
    6
    Vote Rating
    0
    hellofornow is on a distinguished road

      0  

    Exclamation FormPanel.disable() has awkward side effects

    FormPanel.disable() has awkward side effects


    When a user submit a form that contains a FileUploadField, I decided to disable the entire form so that they couldn't change any values while the upload was happening.

    This caused a horrible side effect -- it made the form not submit any values but the FileUploadField itself..

    None of my Hidden or TextField values were being sent .. this took me (no joke) 8 hours to solve .. I drank a lot of coffee b/c of this

    edit: I resorted to masking the form instead of disabling it -- not quite as pretty, but it'll do.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,691
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    Disabled items wont be submitted. I will add a change so that fileuploadfield wont get commited either to one of the next releases.