Skip navigation
Currently Being Moderated

"Shrink to Fit" - Text Field capability?

Jul 18, 2005 2:47 PM

Can Text Field object's be made to automatically shrink text to fit when a value is entered?

We are trying to migrate from a older different vendor product and we would like to keep/recreate this functionality within Adobe forms. In the older product, we set a global checkbox and it automatically handles all fillable text fields within the form.

A user will enter text and as the text exceeds the size of the text field, the text will automatically begin shrinking font sizes...
 
Replies
  • Currently Being Moderated
    Jul 18, 2005 9:36 PM   in reply to (Gregory_Guenther)
    There are 2 examples.

    The first one is a multiple lined textbox that grows with larger amount of content.

    http://www.adobeforums.com/cgi-bin/webx?233@@.3bba09f2/4!enclosure=.3b ba3cff

    The second one is a multiple line text box that has fixed size but will change the font size to accommodate the amount of text.

    http://66.34.186.88/liveCycleSamples/.3bbb61c7.pdf

    You can download these forms and open in Designer to see the javascript behind the textbox.
     
    |
    Mark as:
  • Currently Being Moderated
    Dec 20, 2007 8:53 AM   in reply to (Gregory_Guenther)
    I am interested in the second option, however when I click on the link, my browser says that the page is not available. Help!
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 3, 2008 5:15 AM   in reply to (Gregory_Guenther)
    I am also interested in the second option, however when I click on the link, my browser says that the page is not available. Help!
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 17, 2008 12:30 PM   in reply to (Gregory_Guenther)
    You don't need javascript for this.

    Just open the font palette using Shift-F4 and set the font size to zero.

    The text will then shrink as the box fills.
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2008 12:33 PM   in reply to (Gregory_Guenther)
    Adding to T Maclean's solution:

    Check if "Values" is selected by right clicking on the > button, and selecting Values.

    Another way to do this is by changing the size in the XML editor to "0."

    However, if the user enters too much text, the font size will become extremely small and impossible to read. I'm trying to figure out the solution to limit the minimum font size. Does anyone have any answers to this problem?
     
    |
    Mark as:
  • Currently Being Moderated
    May 19, 2009 10:54 AM   in reply to (An_T)

    Solution to limit the shrinking font size.................

     

    Use font 0 (zero) and use Object, field tab, Max Char. XXXX (enter qty).  Then try maxing out the field.  Adjust the number of Char to limit the shrinking font size.  Real easy.

     
    |
    Mark as:
  • Currently Being Moderated
    May 21, 2009 10:50 PM   in reply to (Gregory_Guenther)

    hi Gregory_Guenther,

     

    look into this thread and see my post, i think it should help

     

    http://forums.adobe.com/thread/427519?tstart=30

     

     

    Thanks,

    Madhu.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)