Expand my Community achievements bar.

count the num of lines of the text enetered in the text edit field

Avatar

Level 2

Hi,

I have an ISR edit box for multiline comments, requirement is by default text upto 7 lines should be visisble(which I have done), a vertical scroll bar should appear with the text of more than 7 line(done), if the text if more tahn 7 lines and user gives the print command for the form then whole text writen in the ISR edit fiedl should print.(STUCK WITH THIS).

Can any one help me out in solving this high priority issue.

What I am trying is to expand the box when print command is given, and recollasped it cback tonormal size, but whne I enter text with blank spaces in between this is not being achieved , I am able to achieve this if user eneter continues text

please this is very high priority issue, help me out.

Thanks in advance

Pooja

4 Replies

Avatar

Level 6

What I would do.....I will have a hidden expandable (height) textarea just for Example I will name it "hidExpand"

and when print command is issued.....

1. I will set the value of hidExpand.rawValue = <multiLineTextarea>.rawValue;

2. <multiLineTextarea>.presence = "hidden";

3. hidExpand. presence = "visible";

4. may have to use xfa.layout.relayout() to force change the layout for print.

and postPrint event I would reverse the scenario....

1. <multiLineTextarea>.presence = "visible";

2. hidExpand.rawValue = "";

3. hidExpand.presence = "hidden";

4. may have to use xfa.layout.relayout() to force change the layout after print.

Hope this works.....try this and if it does not work email me (n_varma AT lycos.com) copy of your form so I can look into your code and help you from there.

Good luck,

Avatar

Level 2

Thanks, I have already resolved this issue.

Avatar

Level 6

Good! share your findings...some day may help some one.