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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to hide a complete page using a condition

MTremblay-Savar
Level 3
Level 3

Hi,

     What i am trying to do, is to hide a page according to a condition. The condition is in my Table's initialize event. I have tried alot of things, i even tried to simply write in my Table's initialize event : data.page.presence = 'hidden' but it does not work. Even worst, it seems to make that the rest of the script is ignored.

     Anybody has tried to hide a page even if there is still information on it?

Thanks!!

Max

1 Accepted Solution
MTremblay-Savar
Correct answer by
Level 3
Level 3

Omg i made the worst mistake, i apologize to the community... The correct syntax should have been :

data.page1.presence = "hidden" instead of 'hidden'

View solution in original post

2 Replies
whyisthisme
Level 7
Level 7

well you need to use " rather than ' for the presence = "hidden" line but if that isn't the issue try putting the code in a different event. What is the actual code for the condition where the page should be hidden?

MTremblay-Savar
Correct answer by
Level 3
Level 3

Omg i made the worst mistake, i apologize to the community... The correct syntax should have been :

data.page1.presence = "hidden" instead of 'hidden'

View solution in original post