on 08-24-2011 5:02 PM
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?
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"
endif
Edited by: Robert Phelan on Aug 25, 2011 5:25 PM
Edited by: Robert Phelan on Aug 25, 2011 5:27 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Robert,
I too have the same issue regarding the fixing the maximum length. I tried fixing the maxH property of the field so that it will not grow after particular height, but seems like it did not work. i have place it in initialization event.
Do i need to place it in anyother event or is my approach wrong. Please help me in this issue.
Thanks,
Rakesh
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?
User | Count |
---|---|
73 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.