PDA

View Full Version : msgTarget 'under' problem



unlex
3 Dec 2009, 7:23 AM
Hi!
I have the following problem. msgTarget: 'under' works fine for DateField and ComboBox but doesn't work for TextField. Instead of this it is shown in 'title' tag of the element.

What might be the solution? Thanks in advance....

unlex
4 Dec 2009, 12:35 AM
Any suggestions? :-?

unlex
4 Dec 2009, 3:45 AM
Well, it's just because TextField isn't wrapped with element with 'x-form-field-wrap' class i.e it getErrorCt returns false for TextField. While Date Field, ComboBox are wrapped.
I forgot to mention that I already have form elements and later on apply ExtJS components to the existing <input> fields. So I have to manually wrap <input type="text"> elements with <div class='x-form-field-wrap'>. 8-|