Possible to change the font and/or point size of the "Click here to insert" text in an optional section? - InfoPath Dev
in

InfoPath Dev

Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

Last post 06-25-2013 10:05 AM by Hilary Stoupa. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 06-25-2013 06:56 AM

    • skarden
    • Not Ranked
      Male
    • Joined on 06-07-2013
    • Orlando, FL
    • Posts 12

    Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

    I know how to change the "Click here to insert" text in an optional group, but I want to change the font, and especially, the font size of that text so the "Click here" text is much larger.  I can't fnd any way to do that.  Is it possible?

     = Stuart =

  • 06-25-2013 07:18 AM In reply to

    Re: Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

      I've done this by manually modifying the view file before. Save your form as source files and then open the view file in a text editor - in the screenshot below, I found the .optionalPlaceholder style and upped the font to 20.


    Hilary Stoupa

  • 06-25-2013 09:04 AM In reply to

    • skarden
    • Not Ranked
      Male
    • Joined on 06-07-2013
    • Orlando, FL
    • Posts 12

    Re: Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

    Thanks for the quick reply.  I went to my form in 2010 designer and did a "Save As" but there is no choice to save as source files.  How do I do that?  Thanks!

     = Stuart =

  • 06-25-2013 09:15 AM In reply to

    • skarden
    • Not Ranked
      Male
    • Joined on 06-07-2013
    • Orlando, FL
    • Posts 12

    Re: Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

    I *think* I found the right place to save them as Source Files by going to the backstage | Publish | Export Source files.  I then opened the view1.xsl in Notepad.  I change the font size from 9 to 20 at the .optionalPlaceholder line. However, when I try to save it I get an error message that says:

     Cannont create the [MyPathInHere]\view1.xsl file.  Make sure that the path and filename are correct.  I'm sure that is correct.  What am I doing wrong, and how do I fix it?

     Thanks,

    = Stuart =

     

  • 06-25-2013 09:17 AM In reply to

    Re: Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

     Do you have the form open while trying to change the view file?

    Hilary Stoupa

  • 06-25-2013 09:34 AM In reply to

    • skarden
    • Not Ranked
      Male
    • Joined on 06-07-2013
    • Orlando, FL
    • Posts 12

    Re: Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

    You are wise beyound your years.  Indeed I had.  I see now when I double click the xml or xsf files that the font has changed.  However, if I go back to the form and preview it, the font reverts to "normal".  Am I therefore correct that I will have to manually change the font each and ever time this same way?

    Thanks,

    = Stuart =

  • 06-25-2013 10:05 AM In reply to

    Re: Possible to change the font and/or point size of the "Click here to insert" text in an optional section?

     I'm not sure what you mean by go back to the form and preview it. From your source files, where you made the change, right click manifest.xsf. Select design - and preview to see your changes. If they are to your liking, use file, save as to save the form files as a template again. Some manual view changes do get overwritten the next time you change the view in the designer - if I recall correctly, the time in the past I did this (I changed the font color of the "insert" widget for a repeating table) I didn't have any trouble with this.

    Hilary Stoupa

Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.