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
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

167 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

167 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
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
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,151 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,151 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

04-05-2021