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

Conditional object presence depending on pagination

Avatar

Avatar
Validate 1
Level 1
robson1976
Level 1

Like

1 like

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
robson1976
Level 1

Like

1 like

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
robson1976
Level 1

30-04-2021

I have a non-interactive form that has 3 master pages.

The pagination of page 1 occurs dynamically depending on the data content. Page 2 is fixed and page 3 can be displayed according to some conditions.

I need to condition the presence of a table on the last page of page 1.

How can I do this using JavaScript?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Employee
Kosta_Prokopiu1
Employee

Likes

132 likes

Total Posts

310 posts

Correct Reply

87 solutions
Top badges earned
Establish
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Establish
Employee
Kosta_Prokopiu1
Employee

Likes

132 likes

Total Posts

310 posts

Correct Reply

87 solutions
Top badges earned
Establish
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Kosta_Prokopiu1
Employee

04-05-2021

Hi @robson1976, your description is a bit abstract 🙂 Let's see if I get the gist of it...

When you say Page 1,2,3 do you mean the master-pages or are you talking about page subforms?

If we talk page subforms, then page 1 would be be set as Content: Flowed, Top to Bottom and the table would paginate "Continue Filling Parent". In this scenario your table would be placed as the last object in the flow of your first page subform and receive Pagination Top of Next Page - hence it would always start on the last page of the flowed content.

If you need that table to show or not show depending on logic/data then as Mayank says you would use this.presence = "hidden"

The same if your 3rd page should only show under certain conditions you would have this.presence = "hidden" in the initialize script of the subform.

Kosta_Prokopiu1_0-1620156678220.png

Kosta_Prokopiu1_1-1620156738121.png

Kosta_Prokopiu1_2-1620156823061.png

All visible

Kosta_Prokopiu1_3-1620156907855.png

All optional parts hidden with this.presence = "hidden"

Kosta_Prokopiu1_4-1620156966609.png

 

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

278 likes

Total Posts

1,101 posts

Correct Reply

181 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

278 likes

Total Posts

1,101 posts

Correct Reply

181 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile
Mayank_Gandhi
Level 10

04-05-2021