Skip to Content
author's profile photo Former Member
Former Member

Reducing the Text height in Adobe Forms

I have a text field which I have included for the long text of me22n transaction in the context node of Adobe forms. In the form I want to adjust the maximum height of the text field using java script or any other way, as in I do not want to print the text if it exists for more than 3 lines?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 25, 2011 at 03:25 PM

    You need to implement a "flowed" design. the concept of flowed means that your field/subform/form expands as your data grows.

    To do this, inserrt a subform and mark it as flowed (Top to Bottom), then drop in a text box and bind it to your input field.

    In your text box's properties, make sure you allow Multiple Lines, and in your Layout pallette make sure Expand to Fit checkboxes are checked.

    your field will grow or shrink depending on your input data.

    EDIT: if you want to hide your field, you need to use formcalc or javascript. you need to check some value (whatever that is, is up to you) then hide your field.

    if (BUSINESS_UNIT eq "G/A" ) then
      COMM_DLY_COSTS.presence  = "hidden"

    Edited by: Robert Phelan on Aug 25, 2011 5:25 PM

    Edited by: Robert Phelan on Aug 25, 2011 5:27 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Robert,

      I have the similar kind of requirement, where I am displaying the Notification longtext fro SAP. I have made the text box editable, so that the user can input as many text lines as he wants. This is client's requirement.

      I have wrapped my textbox in a Flowed subform and also checked the Expand to fit property for the text box.

      But still my text box's height is not dynamic. The height of the box is fixed according to the no of lines coming from SAP. If I want to add more lines, the box is not increasing in height. Similarly, when I am deleting some of the text, the box size is not reducing.

      Do you have any idea, how can I achieve this requirement?

      Do I need to use script for this? Or I can achieve this without scripting?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.