Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

radugbhr
Community profile radugbhr Level 1
Job title here
Location here
0 BADGES
Level 1

Level 1

Learn more
Joined the community 22-01-2015 1:26:10 AM
Offline
Top badges earned by radugbhr
Customize the badges you want to showcase on your profile
Re: Limiting Dynamic Field expansion
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
You are correct. This is in a table. I set the table to expand its height to fit depending on what is typed into the text field #2 (it's a single column with 5 rows, a text field for each row). Text field 2 is the only one set to expand to fit for it's height. But I also have a static text box below it that I don't want the table overlapping.Because of what the type of form is, I don't want to set the table's (or text field's) max height right from the get go, so that rules out an Initialize eve...

Views

163

Likes

0

Replies

0
Limiting Dynamic Field expansion
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
This has been asked, but never answered.Is there a way to limit a field set to "expand to fit" from expanding beyond a certain boundary? Be it a subform, neighboring field, etc. that can be set with a respect this fields space script? Point being, I don't want a field to expand its height so much that it overlaps a text field far below it.

Views

638

Likes

0

Replies

3
Re: Is there a way to contain an expanding table so that it does NOT overflow?
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
I am desperate to know this as well. I have one cell in a 1x6 table set to expand to fit height-wise. But I don't want the whole table to expand beyond the border of it's area. Anyone figure out how to constrain a table within a subform?

Views

145

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Using the script you gave me for the change event (xfa.resolveNode("TitleField0").rawValue = xfa.event.newText),I decided to try a different approach. Since the change event on TitleField1 will now change the rawValue on TitleField0, I thought maybe if I put the following script in the change event on TitleField1 , it would trigger onto TitleField0 correctly. So far it hasn't, but maybe I'm writing it wrong?if (form1.Card_order_form.Proof_card.TitleField1.rawValue.length < 36) { form1.Card_order...

Views

354

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Any more avenues we can try?

Views

348

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
It does for the name fields. It's the title fields which are still troublesome. After looking at it further, I wouldn't have an issue with making TitleField[0] expand vertically to fit the multiple lines of text. The idea being to do what you said. Use the initial height of the field to limit the auto font size when the title is only one line, then have it expand to two lines when the title is long enough. Just not sure how to accomplish it. I've never used expand height to fit before.

Views

360

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
I tried both. Both those worked to copy the raw value from TitleField[1] to TitleField[0] without global data binding, but TitleField[0] still won't change it's font size to 0 when the field is full. I used the xfa.resolveNode("TitleField[0]").font.size = "0pt"; on the full event of TitleField [0] with the limit to visible area option checked.

Views

348

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Yeah, TitleField[0] and TitleField[1] are both set to Use Global Data for their Data Binding. That way I can set TitleField[0] to protected or Read-Only and have it populated with the data values from TitleField[1]. Seeing as TitleField[0] is populated via global data binding, is there another option I have to check to force TitleField[0]'s scripts to fire correctly?

Views

361

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Tried xfa.resolveNode("TitleField[0]").font.size = "0pt"; in the full event on Title[0]. Also checked the Limit length to visible area for both Title Fields [0] and [1]. Still isn't firing. I'm wondering if it's because I have title field [1] populating title field [0] via global data binding between the 2?

Views

355

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Tried xfa.resolveNode("TitleField[1]").font.size = "0pt"; in the full event on Title[0]. No dice. I don't think the full event will run such a javascript. That's why I was thinking maybe put it in it's own script object then have the full event run that script object.

Views

355

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Working better. But I wonder if I can write a script that is triggered on a full event for the Title field.Then have the script execute something like: form1.Card_order_form.#variables[0].change_font_size - (JavaScript, client)xfa.host.setFocus(form1.Card_order_form.Proof_card.TitleField); this.font.size = "0pt";

Views

353

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Ahhh...I see what you're saying. My issue is more with the bottom field. [Title]Just tried setting the font size to 0 in ES2. It does max the font size to the height of the field.But with the bottom field, I only have so much room to work with. There are other fields below the Title field. So I can't set it to expand on demand.What I've wanted it to do is hit a certain character limit (36), then switch from 9pt to 0 pt. But I have the "allow multiple lines" option checked in the object propertie...

Views

347

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Still isn't opening up. I am running Reader XI and Acrobat 9 Pro (9.4) on my system. So I don't think either one should have any problems with compatibility. So, in LiveCycle ES2, is there an option to change this reasonable maximum font size? Like can it be customized to a field, the whole form, or is it coded globally for all XFA PDFs?

Views

357

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Can't open the form. It gives me an "Error encountered while processing node...Unable to find a suitable font ISO 8859-6 encoding message. Both Reader and Acrobat. In any event, if I were to use ES2 or later, and set the font value to 0, wouldn't the field value try and take up the entire text box then?

Views

363

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Here's the dumbed down version.bizcard_form.pdf - Google DriveIts the name and title fields which I'm trying to set the maximum font size to. There are two of each field, both have their values linked globally, but not their formatting. So, the left hand fields I need to set a different font size than the right hand fields.

Views

354

Likes

0

Replies

0
Re: Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
How are you setting it though? What script?I can't post the form without getting a bunch of OKs first (gotta love government).But I will replicate the text fields I'm trying to do this in and post that in a pdf.

Views

353

Likes

0

Replies

0
Maximum font size script
Avatar
Level 1
radugbhr
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
View profile
radugbhr
- Adobe LiveCycle
Howdy all! Have a tricky question. Using LiveCycle ES 8.2Working on a form, I've got a pair of linked text fields (global data linked).These text fields are static in size, but I need the values typed into them to shrink when it fills up the visible area of the text field. I can't set the value font size to 0pt from the start. It makes the initial font size too big for the value. The font size needs to remain at 16 pt until the value fills up the field's visible area, then it needs to switch ove...

Views

1.9K

Likes

0

Replies

23