Results 1 to 4 of 4

Thread: Form submit returning console log error / form not conencted

  1. #1
    Sencha User
    Join Date
    Jun 2015
    Posts
    22

    Default Answered: Form submit returning console log error / form not conencted

    Hello!
    I ge this error Form submission canceled because the form is not connected when trying to submit a form with a file field. I submit each form in a for loop if I find the value in the file field. This worked in sencha touch but in extjs 6 modern it doesn't anymore. Can anyone advise please?

    Code:
    xtype: 'fieldset',
    
     itemId: 'fsAddImage',
     items: [
    { xtype: 'formpanel', bodyPadding: 10, items: [ { xtype: 'filefield' } ] }, { xtype: 'formpanel', items: [ { xtype: 'filefield' } ] }, { xtype: 'formpanel', items: [ { xtype: 'filefield' } ] }
    ]
    This is my submit:
    Code:
    frmPicDoc.submit({
                url: App.url.baseUrl+'/UploadDocument',
                params: {
                    request_guid: App.reqGuid,
                    request_user_guid: App.user.authuser,
                    REQUEST_REQUEST_STATUS_ID: status
                },
                method: 'POST',
                success: function(form, result){
    
    
                },
                failure: function(form, result){
    
    
                    arr.push(value);
                    Ext.Msg.alert('Error', 'This files could not be uploaded: '+arr);
                },
                xhr2: true,
                scope: this
            });

  2. found same problem today seems a problem from chrome update, not testet but this should solve the problem:

    enableSubmissionForm: false

    source: http://stackoverflow.com/questions/4...ed-error-in-ch

    greetings

    edit: solution works. problem is in chrome 57 webview, on some devices like 4 and 6 it works without change, in other not. secure way is to change the app with the property.

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Can I ask why you have placed each file field in it's own form? I'm not sure I've seen forms within a fieldset either.

  4. #3
    Sencha Premium User
    Join Date
    Jul 2013
    Location
    Berlin, Germany
    Posts
    37
    Answers
    2

    Default

    found same problem today seems a problem from chrome update, not testet but this should solve the problem:

    enableSubmissionForm: false

    source: http://stackoverflow.com/questions/4...ed-error-in-ch

    greetings

    edit: solution works. problem is in chrome 57 webview, on some devices like 4 and 6 it works without change, in other not. secure way is to change the app with the property.

  5. #4
    Sencha User
    Join Date
    Jun 2015
    Posts
    22

    Default

    @Gary Schlosberg: The middleware knows only how to do 1 by 1. that's why I have a form each filefield

    @wps: Thanks a bunch. This works now as expected. Thank you

Similar Threads

  1. form.submit is not a function [Break on this error] form.submit();
    By intro in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 30 Aug 2010, 11:03 AM
  2. Error while submit a form
    By gruu in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 8 Jun 2010, 11:19 AM
  3. Error on form submit
    By cnelissen in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 25 Sep 2007, 1:56 PM
  4. Error with the submit form sintax error ( ) ext-all.js (line 38)
    By nunez in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 12 Aug 2007, 7:25 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •