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

Show a hidden object on the master page

Avatar

Avatar
Ignite 3
Level 3
lostfrogg
Level 3

Likes

8 likes

Total Posts

66 posts

Correct Reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 3
Level 3
lostfrogg
Level 3

Likes

8 likes

Total Posts

66 posts

Correct Reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile
lostfrogg
Level 3

06-09-2020

I'm struggling to be able to show a hidden object (text field) on the master page, when I select an item from a drop-down on a standard page. The item shows initially, but the next time there is an action to show a different area on a standard page, the hidden object on the master page disappears again! Any idea why this is happening, and how to fix it?

Replies

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

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

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

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

08-09-2020

Why do you place that text field onto a master page and not on a body page? A master page is intended for static layout things in the background (logos, header, footer etc.) of the forms pages. Every new page has it's own instance of that master page, so to keep interactive objects syncron in the entire form requires to update every instance then. This can be become complicated depending on your design and the existings scriptings. So it's not recommended to do so which brings me back to my initial question.

Avatar

Avatar
Give Back
Level 2
Kosta_Prokopiu
Level 2

Likes

13 likes

Total Posts

52 posts

Correct Reply

8 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Give Back
Level 2
Kosta_Prokopiu
Level 2

Likes

13 likes

Total Posts

52 posts

Correct Reply

8 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Kosta_Prokopiu
Level 2

09-09-2020

@lostfrogg: as @radzmar says, the master page is not the best location for such things. To explain the behavior of the object a bit more:

The master page is a normally a static backdrop for the surfaces (pages) where you define the areas of content (that you can then place in page subforms) and things like the page numbering and fixed footers etc etc. When there are layout changes in dynamic forms, the master page instances get re-rendered and everything falls back to the designed state.

When you go and use the .presence="" on a master page object in a script you may see it appearing when in interactive mode in the Reader. But everytime there is a re-render taking place the object falls back into its original state. That might also happen when you open that PDF again later.

 

You would have to use scripting in the master page object to determine its initial state based on something in the data and that must execute every time the master page is re-rendered (initialize).

 

Give us an idea of what you want to do and why.

Avatar

Avatar
Ignite 3
Level 3
lostfrogg
Level 3

Likes

8 likes

Total Posts

66 posts

Correct Reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 3
Level 3
lostfrogg
Level 3

Likes

8 likes

Total Posts

66 posts

Correct Reply

0 solutions
Top badges earned
Ignite 3
Ignite 1
Give Back 5
Give Back 3
Give Back 25
View profile
lostfrogg
Level 3

09-09-2020

I have a title bar at the top of each page, which I have set from the master page. I wanted some objects to be invisible/visible here depending on user input. Your replies suggest that this is perhaps not the best option; I have put them at the top of the main area instead, and now it works fine!