Error messages placed incorrectly, no autoscrolling

graphers 04 Dec, 2013
Hello,
I'm using CF4 under my site with Joomla 2.5.6.

I've got a problem that form validation works incorrectly, when an error is found - error tip sticks to the top of the window and there's no auto scrolling to the error field.
It happens only on long forms that need scrolling, on the short forms everything is ok.
fc-tbx code looks like this:
<div class="fc-tbx" style="opacity: 1; position: absolute; float: left; left: -45px; top: 1870px;"><table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td class="tl"></td><td class="t"></td><td class="tr"></td></tr><tr><td class="l"></td><td class="c"><div class="err"><p>Required</p></div><a class="close"></a></td><td class="r"></td></tr><tr><td class="bl"></td><td class="b"></td><td class="br"></td></tr></tbody></table></div>


If I change 'tips' to 'after element' value in validation settings, error message is placed right-but there still no autoscroll.
GreyHead 04 Dec, 2013
Hi graphers,

Please post a link to the form so I can take a quick look.

Bob
graphers 04 Dec, 2013
Figured out it's datepicker - when i fill date in, everything starts working.
How to fix it?
graphers 04 Dec, 2013
Currently, even tips not required, i need autoscrolling to work at least to use 'after element'.
GreyHead 04 Dec, 2013
Hi graphers,

The main problem I see is with the two DatePicker elements at the beginning of the form. You should probably switch to use the MooTools DatePicker - that should fix the problem. If you use the old Monkeyphysics datepicker there are two Validation boxes that both need to be checked.

Please see this FAQ

Bob
graphers 13 Dec, 2013
Worked like a charm, now everything is fine.
Thanks.
This topic is locked and no more replies can be posted.