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

Master Page button hidden prob

Avatar

08-01-2009

How can i make a button in a masterpage invisble??



The code should run from a Script Object.



Hierarchy is ::



testForm

MasterPage

Page1

resetButton

MainPage

Variables

MyScripts



MyScripts is a script object..



And i want to make the resetButton in MasterPage invisible depending on some conditions.

Replies

Avatar

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Thomas_McConnac
Level 4

09-01-2009

resetButton.presence = "invisible";

Avatar

09-01-2009

thanks for the reply. But this is not working. coz i need to access the button of the master page from subpage.



i even tried

xfa.form.testForm.Masterpage.page1.resetbutton.presence = "invisible"



and even xfa.resolvenode("xfa....resetButton").presence = "invisible"



but none of them are working..



Any other idea??

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

09-01-2009

The Master page objects are under a PageSet node. So assuming that your button is on a masterpage called Page1 the expression would be:



form1.pageSet.Page1.Button1



To verify you can always put this javascript command on the click of the button to validate how to get to the object:



app.alert(this.somExpression)