Skip to main content
Participant
April 2, 2020
Question

Fillable form - format text box for user

  • April 2, 2020
  • 1 reply
  • 522 views

I created a fillable form from a Word Doc. The last fillable item requires a lengthy answer (several lines of text). The form shows lines, because the form may also be printed out and hand-written. I want the fillable form's text that is typed in by a user to "fit" onto the lines of the form. Strictly aesthetics, I know, but that's me. I can't find any option to format that particular text box when "scrolling long text" to add space above or below the typed in text. Agh, it's driving me crazy, because I feel certain there's an option for that somewhere!!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 2, 2020

There isn't. You have to manually set the field's position and text size to fit the lines. But why even bother? If the form is printed then you don't need the lines, and vice-versa. So you can set the fill color of the field as non-transparent to cover the lines and if you want use a script to check if the field is empty and then make it non-printable so that the lines show up the printed copy.

To do that you can use the following custom validation script:

event.target.display = (event.value=="") ?  display.noPrint : display.visible;

Zoegirl1Author
Participant
April 2, 2020

Thank you, I think 🙂  When I put in the JavaScript that you gave me, a box pops up asking for "Line Number." No matter what # I put in and press OK, it comes back to that same question. Line Number:

try67
Community Expert
Community Expert
April 2, 2020

Where did you put the code, exactly?