#1   Report Post  
Posted to microsoft.public.word.docmanagement
HelpingHandUp
 
Posts: n/a
Default Word Form Fields

Can you make the text form field not allow someone to press the enter key and
start and new line and change the lines in the form.

When the text field is inserted, length changed to 15 characters and the
protect put on, you can tab to the field, type 15 characters and it will
stop, but when you press enter key it goes down and adds more lines??
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Anne Troy
 
Posts: n/a
Default Word Form Fields

You can't restrict using the Enter key without using VBA.
What you CAN do is place the field in a table cell and set the height of the
table row to EXACTLY a specific height. Then, they can still hit enter, but
they won't see anything...
************
Hope it helps!
Anne Troy
www.OfficeArticles.com

"HelpingHandUp" wrote in message
...
Can you make the text form field not allow someone to press the enter key
and
start and new line and change the lines in the form.

When the text field is inserted, length changed to 15 characters and the
protect put on, you can tab to the field, type 15 characters and it will
stop, but when you press enter key it goes down and adds more lines??



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
HelpingHandUp
 
Posts: n/a
Default Word Form Fields

thanks I will try this out, appreciate your quick response

"Anne Troy" wrote:

You can't restrict using the Enter key without using VBA.
What you CAN do is place the field in a table cell and set the height of the
table row to EXACTLY a specific height. Then, they can still hit enter, but
they won't see anything...
************
Hope it helps!
Anne Troy
www.OfficeArticles.com

"HelpingHandUp" wrote in message
...
Can you make the text form field not allow someone to press the enter key
and
start and new line and change the lines in the form.

When the text field is inserted, length changed to 15 characters and the
protect put on, you can tab to the field, type 15 characters and it will
stop, but when you press enter key it goes down and adds more lines??




  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Charles Kenyon
 
Posts: n/a
Default Word Form Fields

Yes, you can, but it takes vba and essentially changes your Enter key into a
Tab key when you are in the document. You can find a link to this solution
at http://addbalance.com/word/wordwebresources.htm#Forms. You may also want
to look at http://www.word.mvps.org/FAQs/TblsFl...nesInForms.htm.

Hope this helps,
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"HelpingHandUp" wrote in message
...
Can you make the text form field not allow someone to press the enter key
and
start and new line and change the lines in the form.

When the text field is inserted, length changed to 15 characters and the
protect put on, you can tab to the field, type 15 characters and it will
stop, but when you press enter key it goes down and adds more lines??



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
HelpingHandUp
 
Posts: n/a
Default Word Form Fields

Awesome, I was thinking this but I have not used vba just taught it for 4
years. I retired last year after being a programmer/system analyst/trainer
for 40 years and I wanted to continue help train the workforce on Microsoft
Office from my home so that I don't have to travel in my old age and spend
money on gas.

It is so cool to share info with experts. Thanks a lot I will try this out
and let you know what happens.

"Charles Kenyon" wrote:

Yes, you can, but it takes vba and essentially changes your Enter key into a
Tab key when you are in the document. You can find a link to this solution
at http://addbalance.com/word/wordwebresources.htm#Forms. You may also want
to look at http://www.word.mvps.org/FAQs/TblsFl...nesInForms.htm.

Hope this helps,
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"HelpingHandUp" wrote in message
...
Can you make the text form field not allow someone to press the enter key
and
start and new line and change the lines in the form.

When the text field is inserted, length changed to 15 characters and the
protect put on, you can tab to the field, type 15 characters and it will
stop, but when you press enter key it goes down and adds more lines??






  #6   Report Post  
Posted to microsoft.public.word.docmanagement
bb bb is offline
external usenet poster
 
Posts: 17
Default Word Form Fields

i'm trying to create a table whereby the row heights are set at EXACTLY (in
Microsoft Word 2003), but when I specify the row height and make it EXACTLY,
when I go back to this row, it has self-changed back to "AT LEAST". I don't
know what i'm doing wrong.

"Anne Troy" wrote:

You can't restrict using the Enter key without using VBA.
What you CAN do is place the field in a table cell and set the height of the
table row to EXACTLY a specific height. Then, they can still hit enter, but
they won't see anything...
************
Hope it helps!
Anne Troy
www.OfficeArticles.com

"HelpingHandUp" wrote in message
...
Can you make the text form field not allow someone to press the enter key
and
start and new line and change the lines in the form.

When the text field is inserted, length changed to 15 characters and the
protect put on, you can tab to the field, type 15 characters and it will
stop, but when you press enter key it goes down and adds more lines??




  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Word Form Fields

I'd say that the table may be corrupt. Convert to text, copy into another
document, and then recreate the table structure.

--
Stefan Blom
Microsoft Word MVP



"BB" wrote in message
...
i'm trying to create a table whereby the row heights are set at EXACTLY
(in
Microsoft Word 2003), but when I specify the row height and make it
EXACTLY,
when I go back to this row, it has self-changed back to "AT LEAST". I
don't
know what i'm doing wrong.

"Anne Troy" wrote:

You can't restrict using the Enter key without using VBA.
What you CAN do is place the field in a table cell and set the height of
the
table row to EXACTLY a specific height. Then, they can still hit enter,
but
they won't see anything...
************
Hope it helps!
Anne Troy
www.OfficeArticles.com

"HelpingHandUp" wrote in
message
...
Can you make the text form field not allow someone to press the enter
key
and
start and new line and change the lines in the form.

When the text field is inserted, length changed to 15 characters and
the
protect put on, you can tab to the field, type 15 characters and it
will
stop, but when you press enter key it goes down and adds more lines??







  #8   Report Post  
Posted to microsoft.public.word.docmanagement
elizas elizas is offline
external usenet poster
 
Posts: 1
Default Word Form Fields


You can use this code for entire application, even if your page
contains multiple forms and they have different IDs. Just put this code
inside a common js file and include it in every page.

$(function() {

$("form").bind("keypress", function(e) {
if (e.keyCode == 13) return false;
});

});
'Eliza' (http://tinyurl.com/yhzofvy)


--
elizas
------------------------------------------------------------------------
elizas's Profile: 1654
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=82539

http://www.thecodecage.com/forumz/chat.php

  #9   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Word Form Fields


Since you have not quoted the original question, it's difficult to tell, but
it sounds as if you are providing a solution for a Web page/site, not a
protected form in Word. In any case, you have replied to a question so old
it has scrolled off the MS server where it was originally posted.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"elizas" wrote in message
...

You can use this code for entire application, even if your page
contains multiple forms and they have different IDs. Just put this code
inside a common js file and include it in every page.

$(function() {

$("form").bind("keypress", function(e) {
if (e.keyCode == 13) return false;
});

});
'Eliza' (http://tinyurl.com/yhzofvy)


--
elizas
------------------------------------------------------------------------
elizas's Profile: 1654
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=82539

http://www.thecodecage.com/forumz/chat.php



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can Word display full path of a file in the title bar? SAsif Microsoft Word Help 1 January 26th 06 04:32 PM
is word perfect compatible with office word? Noreen Microsoft Word Help 1 May 11th 05 11:17 PM
Envelope Address GR New Users 5 April 24th 05 09:48 PM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM
creating forms Fluffypink Microsoft Word Help 4 March 9th 05 04:17 PM


All times are GMT +1. The time now is 07:26 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"