Issue #28 on hold

inline form and ajax validation

manuel_84
created an issue

I've noticed that with the form type "inline" the ajax validation is not performed...

Comments (6)

  1. Christophe BOULAIN

    I think this is because there's no call to "getError()" method to render the validations errors in BootInputInline :

    protected function textField()
    {
        $this->htmlOptions['placeholder'] = $this->model->getAttributeLabel($this->attribute);
        echo $this->form->textField($this->model, $this->attribute, $this->htmlOptions);
    // Here, shouldn't we call getError ???
        echo $this->getError().$this->getHint();
    }
    

    Adding this makes ajax validation works. The error message is not styled, but that's another story (same as Vertical forms)

  2. manuel_84 reporter

    2 chris is better than one :)

    yes, why in BootInputInline there's no call to getError/getHint like BootInputHorizontal/Vertical/.. ?

    also textArea() and passwordField() need this

  3. Log in to comment