Expand my Community achievements bar.

Text field questions: 1. Scrolling 2. Multiple Lines

Avatar

Former Community Member
Hello,



I am creating a form with Adobe LiveCycle Designer 7.



I have two questions:



1. When I have a text field, and I enter the text in the PDF view, it will keep going until I stop. This causes the text field to become a scroll box. How do I stop that? I want the text to stop when there is no more room left. I understand there is a length limit, but that mean I have to count the number of characters, and also estimate as to what amount off room each character takes. For example, 'i' takes a lot less room than 'Q' with the default font.



2. I want my text field too look like this:



TEXT FIELD: ____________________________________

________________________________________________

________________________________________________



How do I do that? I can only get the caption to, when set to left, be in the middle of the field. Also I cannot see the literal 'multiple lines'.



Thanks a lot!
2 Replies

Avatar

Level 5
I have answer for the first question....all you need to do is copy the following JS code to enter event of each field that you have trouble with.



var acroSOM = this.somExpression.substr(15, this.somExpression.length - 1);

var acroField = event.target.getField(acroSOM);

acroField.doNotScroll = true;



I doubt there is an answer other than NO (in LC 7) for your second question.



Good luck,

SekharN

Avatar

Former Community Member
Ah fantastic thanks a lot!



That code works perfectly for the first one.



The second one was not necessary. I was copying a paper form and wanted it to be as close to it was possible but the regular form of Text Field does the job.



Thanks again!