Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    May 2003
    Location
    Austin
    Posts
    401
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disable Ctl+Lf (V-97/Sr2)

    We have an online form that is used to gather data for business cards.
    It was designed in Word and while the template and .doc are protected,
    a customer can still mangle everything by hitting the [enter] key.
    How can one disable this key until the document is saved and the template is unloaded?

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disable Ctl+Lf (V-97/Sr2)

    Probably not possible, but if it's just the formatting of the text that gets thrown off, why not strip out the crlfs in the Ok or Submit button code?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    4 Star Lounger
    Join Date
    May 2003
    Location
    Austin
    Posts
    401
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disable Ctl+Lf (V-97/Sr2)

    Unfortunately, someone else designed it and it's all macro stuff. I'm only 'cleaning it up'.
    The main problem is...if you open a protected document based on a custom template,
    you should be able to 'tab' through the text boxes using the enter key.
    This was a 'standard' feature in previous versions of Word.
    Then someone in Redmond got the bright idea that adding a paragraph mark inside the protected document was an even better idea.
    Now there are 4 macros required to strip the enter key of it's function and 'emulate' this older feature.
    <A target="_blank" HREF=http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q187985>MS'-Latest 'enhancement'</A>

    Apparently Cntl+Enter (or any other variant was too much to consider) <img src=/S/sarcasm.gif border=0 alt=sarcasm width=15 height=15>

  4. #4
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Disable Ctl+Lf (V-97/Sr2)

    Can you control the formatting of the protected form by putting it into a table, and locking the row height? - or alternatively if not in a table, setting paragraph format to "Exactly"? - this won't stop someone from hitting "Enter", but anything they type after that won't be visible.

  5. #5
    4 Star Lounger
    Join Date
    May 2003
    Location
    Austin
    Posts
    401
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Disable Ctl+Lf (V-97/Sr2)

    The last thing we want is more people calling us with that old "I can't find my cursor" complaint.
    It seems that the only 'proper' fix is one that definitely moves the cursor to the next field when the 'enter' key is pressed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •