Growing text from bottom to top !! IS it possible?

Avatar

Avatar
Level 1
muraliv29958402
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
muraliv29958402
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile
muraliv29958402
Level 1

03-11-2017

Hello Everyone,

Does Live cycle ES4 or new version AEM forms designer 6.1 supports growing content from bottom to top? I have requirement where the disclaimer text needs to be placed at the bottom of the page which can grow. And it has to grow to top so that the disclaimer can ends at same place always.

I placed a Text filed with in Sub form and see the flow direction only " Top to bottom", "Western Text" and "Right to left" but no option like "Bottom to top" or grow up.

Is there any way to achieve this?

Thanks in advance for any help.

Thanks

Krish

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

06-11-2017

You can do this with a few lines of code.

Assuming you have a subform with a positioned layout that contains a multi-line textfield which should grow from bottom to top. All you need is the following script in the calculate event of the subform.

var nSubformH = parseFloat(xfa.layout.h(this, "mm"), 10),

    nFieldH = parseFloat(xfa.layout.h(this.Textfield1, "mm"), 10),

    nDiffH = nSubformH - nFieldH + "mm";

this.Textfield1.y = nDiffH;

xfa.layout.relayout();

Avatar

Avatar
Level 1
muraliv29958402
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
muraliv29958402
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
View profile
muraliv29958402
Level 1

06-11-2017

I don't think that really works. We are not sure how much language can come in xml, some times it may need to grow up to half of the page from bottom.

Avatar

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mouslander
Level 4

03-11-2017

the only way I can think to achieve this would be via a table. You can start with one row. When a new row is needed and you click to add it, the row would be placed above the current content. Not sure if that would help