Skip to main content
July 8, 2019
Question

AutoTab without words getting cut off

  • July 8, 2019
  • 2 replies
  • 686 views

I created a form that has 3 text fields to enter in a long description. I was able to find a script to autotab onto the next text field after a character limit is reached, but now words get cut off in the middle if the character limit is reached. Is there a way to automatically move a word to the next line if it gets cut off due to the character limit?

This is what it looks like now:

Line 1: "This is a long sentence to demonstr

Line 2: "ate."

I want it to act like this:

Line 1: "This is a long sentence to

Line 2: "demonstrate."

This topic has been closed for replies.

2 replies

Bernd Alheit
Community Expert
Community Expert
July 9, 2019

Use a multi-line text field.

Legend
July 8, 2019

It wouldn't be impossible for you to write a script that does that. It would need to look backwards in the string, cut it, and put that in the next field. HOWEVER, it wouldn't really work because where the user types may be unpredictable. Their previous typing might be lost, or at the end. You're really reaching outside how PDF forms are made to work well, or at all, and it gets messy.