Results 1 to 5 of 5

Thread: Validate form with hidden panel

  1. #1
    Sencha User
    Join Date
    Nov 2008
    Location
    Pune
    Posts
    43

    Default Validate form with hidden panel

    i have two panels which is hiding and showing base on the key event.
    While panel is hidden and i clicked on submit button to save the form data its not post the form.
    bcoz of the one of the field is required in the hidden panel.

    Please suggest me..

    How can i pass the validation in hidden panel.?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409

    Default

    Add the following to your tabPanel so all fields are sent.
    deferredRender: false

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Location
    Pune
    Posts
    43

    Default

    Hi Scottmartin,

    Thanks for you quick response,
    i have already added deferredRender:false to tabPanel but still i am facing the problem.

    Please suggest me what i have to do, to resolve it.

  4. #4
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335

    Default

    Hi,
    I guess you are using 'allowBlank:false' as a confiig in your field which is in hidden panel.

    Simply, in the save function, before validating your form, change allowBlank of your field.

    Code:
    YourMandatoryField.allowBlank=true;
    Or, you may perform this when you are hiding your panel instead of save function..

    then,it will not create any mishaps in validation.....
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  5. #5
    Sencha User
    Join Date
    Nov 2008
    Location
    Pune
    Posts
    43

    Default

    Thanks
    Sword-IT

    its working.............

Posting Permissions

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