cancel
Showing results for 
Search instead for 
Did you mean: 

ADOBE PDF Variable text field

Former Member
0 Kudos

Does any one know if there is a way to change the size of a text field on the layout depending the amount of data coming into the form?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Hello, Of course you can do that. Please tell me more about the data about the form and about the size change, i can help you with this. Regards, Otto

Former Member
0 Kudos

Hi Otto,

In the initialization tabb I'm adding code to check hrp1001 PRIOX and if the priox is GE 90, I want to display 70-80 char string but if not I want to display nothing and I want the space in the form to skrink so the user does not see the empty gap in form.

Does that help?

JeffG

Sandra_Rossi
Active Contributor
0 Kudos

In javascript or formcalc, you use YOURFIELD.presence = "Hidden" to hide your field based on the condition you want. See forums for more information.

Former Member
0 Kudos

Hi Otto,

Thanks for you help!! I added the following code and it works!!

*if w_warning.length < 10 {w_warning.presence = "Hidden";}

JeffG

Former Member
0 Kudos

Otto,

I stand corrected, it's not working.

if w_warning.length < 10 {w_warning.presence = "Hidden";}

Any other thoughts? Would I place this code in a specific script area?

Jeff

Sandra_Rossi
Active Contributor
0 Kudos

this is a very basic question, you'll find the answer in forums (especially the IFbA forum)

Answers (0)