Supressing Enter in a form field

G

Guest

I'm using multiple form fields in a table layout and I want to prevent the
user from inadvertently pressing enter while in a field and adding an
unnecessary new line. Is there a way to prevent this from happening without
temporarily remapping the enter key ?
 
J

Jay Freedman

Kevin said:
I'm using multiple form fields in a table layout and I want to
prevent the user from inadvertently pressing enter while in a field
and adding an unnecessary new line. Is there a way to prevent this
from happening without temporarily remapping the enter key ?

There are only two methods you can use. One of them is remapping the enter
key (http://support.microsoft.com/?kbid=211219).

The other is to place each field in a separate cell of a table that has been
formatted with fixed column width and row height. This doesn't really
prevent the addition of empty paragraphs to the field, but it does prevent
the field from expanding downward.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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