1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    19
    Vote Rating
    0
    icvg is on a distinguished road

      0  

    Default Server side validation: the errors key in the response

    Server side validation: the errors key in the response


    Hello, all!

    I am using version 3.3.1 of ExtJS and have a problem marking the fields with errors, validation being made on the server side. On form submission I receive from server an JSON array with success=false and with

    Code:
    errors = array['textfield' : 'error1', 'checkbox': 'error checkbox', 'htmleditor' : 'HTML EDITOR ERROR']
    The problem:
    The input field of type text gets marked, but the checkbox and the textarea does not. Any experience with that? Or with server side validation? Any ideas on my problem.

    Thank you.

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,611
    Vote Rating
    326
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    See the comment in bold at the top of the HtmlEditor docs:

    http://dev.sencha.com/deploy/ext-3.4...orm.HtmlEditor

    Checkboxes also don't support invalidity, presumably because if one of the two states is invalid then it doesn't make sense to show the checkbox.

Thread Participants: 1