Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    May 2001
    Location
    Berkeley, California, USA
    Posts
    214
    Thanks
    0
    Thanked 0 Times in 0 Posts

    format form fields (03 SP1)

    I have a forms template I created. I have tried to change the font of some text fields to Times New Roman 12 pt. bold underlined. Although the template displays the correct font, the documents I create from it have arial 11 plain font. I tried to attach a copy of the template, but of course that is not allowed. To make it more complexing. I have succeeded in reformating some fields and not others.

    The method I used is to open the template, stop protection, select the field set the new formatting using the formatting tool bar, Start protection and save the template.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: format form fields (03 SP1)

    Form fields will revert to the underlying style. Create a character style with the desired font settings (Times New Roman 12 pt. bold underlined), and apply this style to the form fields.

  3. #3
    3 Star Lounger
    Join Date
    May 2001
    Location
    Berkeley, California, USA
    Posts
    214
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: format form fields (03 SP1)

    I thought I understood your answer. But it didn't work. I created a style I called "TextField". I highlighted the fields I wanted to apply it to and then clicked on the style in the Style window. The template appears to be correct. I protected the template, saved it. Opend a new document and selected the template. Same old results.
    <img src=/S/brickwall.gif border=0 alt=brickwall width=25 height=15> (closest smilie I could find to the frustration I am experiencing.)

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: format form fields (03 SP1)

    I have attached a template (in a zip file, for you can't attach templates directly). It contains four text form fields, of which two are formatted with a different font by applying a character style. What happens if you create a new document from this template?
    Attached Files Attached Files

  5. #5
    3 Star Lounger
    Join Date
    May 2001
    Location
    Berkeley, California, USA
    Posts
    214
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: format form fields (03 SP1)

    Clever boy: using a zip file. <img src=/S/clever.gif border=0 alt=clever width=15 height=15> Why didn't I think of that. <img src=/S/doh.gif border=0 alt=doh width=15 height=15>

    I will try what you suggest.
    In the mean time, I am sending you a zip file of the 1st page of my template. The problem is in the first field PO # upper left and Date field at the bottom. Perhaops you can see if there is anything else going on.
    Attached Files Attached Files

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: format form fields (03 SP1)

    And how does this version of your template work? (Note: I have probably change too many fields to Times New Roman, so don't overwrite your own version!)
    Attached Files Attached Files

  7. #7
    3 Star Lounger
    Join Date
    May 2001
    Location
    Berkeley, California, USA
    Posts
    214
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: format form fields (03 SP1)

    It works great. Does the style apply automaticaly to the field if you name it "FomText" or do you have to go through and apply it to each Field? If the latter, do you have any idea what I was doing wrong?

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: format form fields (03 SP1)

    "FormText" is an arbitrary name, I might as well have named the style "James Brown". You have to apply it to each field separately, but you can use a macro for this. For example, to set ALL text formfields to the FormText style:

    Sub SetFormText()
    Dim ff As FormField
    For Each ff In ActiveDocument.FormFields
    If ff.Type = wdFieldFormTextInput Then
    ff.Range.Style = "FormText"
    End If
    Next ff
    Set ff = Nothing
    End Sub

    You can add extra conditions if you want to modify only some of the text formfields.

    I don't know why it didn't work for you.

Posting Permissions

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