Validation again

  1. #1

    Validation again

    The page contains some TextFields and ComboBoxes and a button (named "Button Submit") . Some of TextFields allow empty values, others don't. There is no FormPanel on the page.

    I understand I have to validate manually each of these controls. But I don't know how I can make the "Button Submit" disabled if any of them is not valid.
    Last edited by AlexMaslakov; Sep 20, 2011 at 7:02 AM.
  2. #2
    Hi,

    Well, you should use AfterRender listener of all fields to initially set up disabled state of the submit button.

    To change a state of the fly, please use Change event of all fields.

    Why don't you use FormPanel?
  3. #3
    'Cause FormPanel can't contain user controls and has some limitations.
  4. #4
    Ok, thanks for the update.
  5. #5
    FormPanel can contains another containers and those containers can use Content with user control

Similar Threads

  1. Validation?is this a bug?
    By richard in forum 2.x Help
    Replies: 3
    Last Post: Jul 12, 2012, 4:41 PM
  2. Client Side Validation and Validation Status
    By speddi in forum 1.x Help
    Replies: 8
    Last Post: Nov 03, 2011, 11:24 AM
  3. Validation
    By Shubhangi in forum 1.x Help
    Replies: 0
    Last Post: Sep 20, 2011, 1:13 PM
  4. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM

Posting Permissions