Howdy all! Have a tricky question. Using LiveCycle ES 8.2
Working 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 over to 0pt (hence triggering a full event).
I've tried using a full event with the following code;
- this.font.size = "0pt";
But it won't fire. I wonder if there is a limitation to the what the full event can trigger. I can use the change event or even the exit event if I have to.
I've also tried a calculate event with the following script:
- if (this.rawValue.length > 48) {
- this.font.size = "0pt";
- }
- else {
- this.font.size = "16pt";
- }
But this did not fire as well. And yes, I have the scripting set to Javascript...not Formcalc.
Any suggestions?