Results 1 to 4 of 4

Thread: ComboBox & emptyText

  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    2

    Question ComboBox & emptyText

    Hi I am new to ext and fairly new to javascript. If a user does not select a value from a comboBox the emptyText value is passed to the server. How can I throw an error on the client side, before the form data is submitted to the server? Thank you.

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895

    Default

    Add submitEmptyText: false to your form.getForm().submit({<...config here...>}) call.

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    2

    Default

    Thanks, I'll try it out. Where in the API can I find available methods, like submitEmptyText, for the submit action? Thank you.

  4. #4
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895

    Default

    Ext.form.Action.Submit config options.

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
  •