cancel
Showing results for 
Search instead for 
Did you mean: 

In Textfield pagebreak if there are coming more than 3 lines

Former Member
0 Kudos

Hi Gurus,

Here is a challenge for all scripters 🙂

I have in an adobe form a longtext. I want to check in the text field via javascript or formcalc how many lines the text field contains.

And if at a certain position coming more than 3 lines make a pagebreak.

Thus 3 question I would have:

1. How to get the actual line

2. How to get the number of lines which are still coming

3. How can I trigger a pagebreak in script

Hoping getting good answers!!

Thanks+Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

This message was moderated.

0 Kudos

You can also in abap (form interface) convert the text into a table of string with maybe 100 chars each  and let the layout adjust the number of lines it can show in that page, passing the remainers to the next page.

Best regards

Florian
Active Contributor
0 Kudos

Hi think miguel is right,

why don't read the characters and do a middle-value.
Something like if there are more than 200 characters in, do a page-break.

In this case you could also split the text into two parts and have it with a pagebreak between.

Of course, you have to split it in a proper way, Sentences Words whatever...

Doesn't sound that hard to script to me.

~Florian

0 Kudos

Hi,

I dont belive you can do that. I think you can count the field characters but not the lines it will take. Cant you make it break into the next page?

Miguel