[CLOSED] Loop through formfields to check validation

  1. #1

    [CLOSED] Loop through formfields to check validation

    Is there a way to loop though all objects in a formpanel to find out for each object if it's valid or not (client)?

    Having some trouble understandig why my form isn't submitted. Probably something to do with some objects not visible, but still validated.

    Martin
    Last edited by Daniil; May 24, 2013 at 9:57 AM. Reason: [CLOSED]
  2. #2
    Hi Martin,

    Yes, hidden fields are still validated. A solution - disabling fields along with hiding and, respectively, enabling along with showing.

    Disabled fields are not validated, i.e. they are always considered as valid.

    Though, answering direct to your question, you can use a container's cascade method.
    http://docs.sencha.com/extjs/4.2.0/#...method-cascade
  3. #3
    Solved,

    It was a hidden combo .. I disable it now :)

    Martin

Similar Threads

  1. Check Panel Form Validation ?
    By Mohammad in forum 1.x Help
    Replies: 0
    Last Post: Nov 29, 2011, 5:46 AM
  2. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM
  3. FormPanel error after validation check
    By HexElffilter in forum 1.x Help
    Replies: 0
    Last Post: Feb 14, 2011, 8:57 AM
  4. Replies: 2
    Last Post: Mar 21, 2010, 1:18 PM
  5. gridpanel loop
    By maxdiable in forum 1.x Help
    Replies: 4
    Last Post: Jul 09, 2009, 9:37 AM

Posting Permissions