1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    14
    Answers
    1
    Vote Rating
    0
    RobDB3 is on a distinguished road

      0  

    Default Answered: Contact Form Not Working

    Answered: Contact Form Not Working


    Hello All,

    I've hit a brick wall with this and appreciate any help that's offered. I'm building out a GS app and trying to implement the Contact Form. My code is the standard GS code for the Contact.js, app.js, Main.js and I'm using formmail.php which has always worked in the past. My Contact code is as follows:


    Ext.define('YRE.view.Contact', {
    extend: 'Ext.form.Panel',
    xtype: 'contactform',

    requires:[
    'Ext.form.FieldSet',
    'Ext.field.Email',
    'Ext.MessageBox'
    ],
    config: {
    title: 'Contact',
    iconCls: 'user',
    cls: 'home',
    url: 'form/form.php',
    method: 'POST',
    scrollable: true,



    items: [
    {
    xtype: 'fieldset',
    tabBar: false,
    items: [

    {
    xtype: 'textfield',
    name: 'name',
    label: 'Name'
    },
    {
    xtype: 'emailfield',
    value: 'Your email address',
    name: 'email',
    label: 'Email'
    },

    {
    xtype: 'textareafield',
    name: 'message',
    label: 'Message'
    }

    ]
    },
    {
    xtype: 'button',
    text: 'Submit',
    ui: 'confirm',
    handler: function() {
    this.up('contactform').submit();
    alert('Click OK to Send');
    }

    }
    ]
    }
    });


    When I click Submit other than the Alert box nothing happens. The form content isn't sent and there is no redirect to the Thank You page. Any ideas would be more than welcome.

    Thank you,

    Rob

  2. Hello Everyone,

    I was able to get the Contact.js form working.

    Thanks and best,

    Rob

  3. #2
    Sencha User
    Join Date
    Dec 2012
    Posts
    14
    Answers
    1
    Vote Rating
    0
    RobDB3 is on a distinguished road

      0  

    Default Contact Form Now Working

    Contact Form Now Working


    Hello Everyone,

    I was able to get the Contact.js form working.

    Thanks and best,

    Rob