Enter button not working on form ?

W

Wayne-I-M

Hi

I have create a form to calculate input from users - it "almost" works fine.
The only problem is that the "Enter" button is not working.

Most people will enter something on to a form then press Enter to go to the
next field so - if possible - I would like to allow this.

Any ideas??

link to form
http://www.folgarida.co.uk/test.htm

Thank you
 
J

Jon Spivey

That's not how forms are supposed to work. The default behaviour of a form
is to press Tab to move to the next field then press Enter to submit the
form. Your form works fine as far as tabbing between fields, which is
correct behaviour. if you wanted you could add some script to make Enter
move to the next field but it would confuse users who expect (correctly) to
press Enter to submit.

If it was me I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves straight
to the next field - this would be much more user-friendly. You might also
consider using drop downs with values say 1 thru 10 so the user can chose
rather than having to type.

Cheers,
Jon
 
W

Wayne-I-M

Hi Jon

Thnk you for answering.

This is a really idea
If it was me I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves straight
to the next field
This would be a simple thing for me in access but for a website I think it
would be beyond my (low) skill level. But it really would improve it.

Do you have a simply method to get ths to work ?


This is another really good idea
consider using drop downs with values say 1 thru 10 so the user can chose
rather than having to type.
I think I could manage that - I will give it a try




--
Wayne
Manchester, England.



Jon Spivey said:
That's not how forms are supposed to work. The default behaviour of a form
is to press Tab to move to the next field then press Enter to submit the
form. Your form works fine as far as tabbing between fields, which is
correct behaviour. if you wanted you could add some script to make Enter
move to the next field but it would confuse users who expect (correctly) to
press Enter to submit.

If it was me I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves straight
to the next field - this would be much more user-friendly. You might also
consider using drop downs with values say 1 thru 10 so the user can chose
rather than having to type.

Cheers,
Jon
 
W

Wayne-I-M

Excellent point Bob

I think I will try to go with Jon's idea of using a dropdown with 1,2,3,4
on. The maximum number of rooms people can book on-line is 4 - more than
this they need to call us.

Thanks for the input


--
Wayne
Manchester, England.



Bob Lehmann said:
I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves straight
to the next field
<<<<<<<<<<<<<<

How would you know when to move? Move after '1' is typed or '10'?

Bob Lehmann
 
J

Jon Spivey

Hi Wayne,

Just went back to have another look at your page and I see you've updated it
to use dropdowns - that seems like an excellent solution. Presumably you're
happy with what you have now?

Cheers,
Jon

Wayne-I-M said:
Hi Jon

Thnk you for answering.

This is a really idea
If it was me I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves
straight
to the next field
This would be a simple thing for me in access but for a website I think it
would be beyond my (low) skill level. But it really would improve it.

Do you have a simply method to get ths to work ?


This is another really good idea
consider using drop downs with values say 1 thru 10 so the user can chose
rather than having to type.
I think I could manage that - I will give it a try
 
T

Thomas A. Rowe

Better yet, update the Total when the cursor leave the field

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================


Bob Lehmann said:
I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves straight
to the next field
<<<<<<<<<<<<<<

How would you know when to move? Move after '1' is typed or '10'?

Bob Lehmann
 
B

Bob Lehmann

I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves straight
to the next field
<<<<<<<<<<<<<<

How would you know when to move? Move after '1' is typed or '10'?

Bob Lehmann

Jon Spivey said:
That's not how forms are supposed to work. The default behaviour of a form
is to press Tab to move to the next field then press Enter to submit the
form. Your form works fine as far as tabbing between fields, which is
correct behaviour. if you wanted you could add some script to make Enter
move to the next field but it would confuse users who expect (correctly) to
press Enter to submit.

If it was me I'd consider changing your script so that when a user enters
something in a text box the Total is updated and the cursor moves straight
to the next field - this would be much more user-friendly. You might also
consider using drop downs with values say 1 thru 10 so the user can chose
rather than having to type.

Cheers,
Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top