newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Focus is first field of last form #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I have several forms with the php-form-builder-class on one page and it always 
jumps to the fist field of the last declared form.

What is the expected output? What do you see instead?
Displayed page should not jump down to the first field of the last form, 
instead it should stay on top of the page.

What version of the product are you using? On what operating system?
v1.1.1 or 1.1.2 on win7 with xampp

Original issue reported on code.google.com by woelfc...@gmail.com on 31 Oct 2010 at 4:58

GoogleCodeExporter commented 8 years ago
You can prevent the auto-focus functionality by setting the noAutoFocus form 
attribute.

$form->setAttributes(array(
    "noAutoFocus" => 1
));

- Andrew

Original comment by ajporterfield@gmail.com on 31 Oct 2010 at 5:10