Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Javascript for Conditional Break in ES4

Avatar

Avatar
Boost 1
Level 1
g_gold
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
g_gold
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
g_gold
Level 1

21-03-2018

Hi All,

I need help with Javascript for a conditional break in LiveCycle Designer ES4.

I have flowed form AttachmentC with Subform01 and Subform02. Within Subform01, I have radio list that either reveals Question2 or keeps Question2 hidden. If Question2 is revealed, Subform02 needs to start at the top of the next page. If Question2 is hidden, Subform02 needs to be on the same page as Subform01. I have identified where in the software to find the conditional break, however, I have no idea how to write the conditional Javascript, nor what “Leader” or “Trailer” mean. Is there anyone out there who can assist me?

Thanks so much!

-GG

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

270 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

22-03-2018

Hi,

"Leaders" and "Trailers" are for adding sub-headings and sub-totals, so doesn't sound like you need to worry about them.  You will have to write the expression that returns true to force a page break, the main thing in your case is to set the To to "Top of Next Page".  So something like;

Capture1.PNG

Regards

Bruce

Avatar

Avatar
Boost 1
Level 1
g_gold
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
g_gold
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
g_gold
Level 1

26-03-2018

Thank you so much! It worked.