Skip navigation
sol_720
Currently Being Moderated

Text Field Settings--Immediate Expansion, Simultaneous Expansion

Jul 16, 2012 1:23 PM

Tags: #text #field #link #expand #immediately #text_field #simultaneous #expand_to_fit

Hi all, I am working on a form in LiveCycle Designer (version 9, testing my work with Reader 10.1) and have a few issues I would like help with.  First of all, I will say that I have successfully set my text fields to expand vertically to accommodate text, and form elements are flowed so they move down correctly, etc.  I don't need help with that.  My questions are:

 

1)  The form contains many expand-to-fit text fields that start out only 1 line tall.  How do I set a text field so it will expand immediately when the user runs out of room while typing (rather than simply displaying scrollbars while the user is typing and then, only when the user shifts focus out of the field, expanding)?

 

2)  I have two text fields, side by side.  Is there any way to set them so that they will always expand vertically to the same size (i.e., whichever one has less text will grow to match the vertical size of the one that has more text)?

 

Please let me know if these are at all possible within LiveCycle's provided options or if they would require scripting and if so, how much.  Thank you!

 
Replies
  • Currently Being Moderated
    Jul 16, 2012 1:59 PM   in reply to sol_720

    Hi,

     

    If you have a look at this example, you will see on the last page a small script in the enter event (and exit event) setting the h and minH properties: http://assure.ly/g80MVY.

     

    Again on the second issue, you could set the minH of each object based on the other's actual height. However on balance I find tables better for this sort of behaviour, as it is built in without having to script.

     

    Hope that helps,

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2012 12:17 PM   in reply to sol_720

    Okay,

     

    I see what you mean. I am not sure that there will be a work around for this unwanted behaviour. If you believe that people will normally input a lot of data, then the best approach may be to give a reasonable height to the object to start with and omit the script. If the form is UI becomes unwieldy when spaning over two pages, then the user may become confused.

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 18, 2012 12:19 PM   in reply to sol_720

    Hi,

     

    I wasn't able to reproduce your problem but your screenshot reminds me of a solution to fix a layout issue in a flowing layout.

    Maybe this can help you.

     

    http://blogs.adobe.com/dmcmahon/2011/10/10/lc-forms-es-text-overlappin g-on-page-break-using-nested-subforms/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points