cancel
Showing results for 
Search instead for 
Did you mean: 

How to Limt Standard Text through Javascript

Former Member
0 Kudos

Hi,

I have an urgent requirement ,

I need to print only 2 lines of Text entered in the Header/Item Text in PO.

When the text exceeds more than 2 lines I need to truncate the rest.

I am using an include text for this.

I hv tried limiting the char / allow multiple lines with limit char.. etc...

nothing worked.

Do i need to write Java Script code.. kindly help me with an example code.

thanks in advance.

regards

divya

Accepted Solutions (1)

Accepted Solutions (1)

rakesh_m2
Contributor
0 Kudos

Hello Divya,

Increase the width and height of the text box which you are using to display include text such that only two lines are fit into it and remove expand to fit in width and height...

If you don't need the white space in between when text is not present, then use function module 'READ_TEXT' and display only two lines.

Thanks,

Rakesh

Former Member
0 Kudos

thanks it worked.

sorry for the late reply!

Answers (0)