cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ttaylor
Level: Powered On

Hiding all buttons on page until dropdown selected

How do I hide navigation buttons until a dropdown selection is made or the user clicks add new organization? Please see attached example. 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Hiding all buttons on page until dropdown selected

@ttaylor 

I would like to share a straight-forward method with you that I would use in your situation.

 

Input this code within the OnVisible property of the screen

Set(showButtons,false)


Then put this code in the OnChange property of the dropdown

Set(showButtons,true)


Finally, put this code in the Visible property for each green button

 

showButtons


---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Hiding all buttons on page until dropdown selected

@ttaylor 

I would like to share a straight-forward method with you that I would use in your situation.

 

Input this code within the OnVisible property of the screen

Set(showButtons,false)


Then put this code in the OnChange property of the dropdown

Set(showButtons,true)


Finally, put this code in the Visible property for each green button

 

showButtons


---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Super User
Super User

Re: Hiding all buttons on page until dropdown selected

There are a couple ways to go about this.  If you just want to prevent the user from accessing the buttons you can disable them until they are applicable.  This has the benefit of giving the user a preview of what they will be able to do once they make a selection.  This can be accomplished by setting the DisplayMode property to DisplayMode.Disabled instead of the default DisplayMode.Edit.  By using a If statement you can control when this is done.   On each button you want to disable, you would enter If(IsBlank(correct name of control that selects the text, e.g. ddCurrentOrg.Selected.Result), DisplayMode.Disabled, DisplayMode.Edit) which will set the DIsplayMode to disabled if no selection has been made and to DisplayMode.Edit if it has.  

 

If you truly do not want to user to see the buttons at all, you will take a similar action, but with the Visible property which requires a true/false value.  Here the statement would be If(IsBlank(correct name of control that selects the text, e.g. ddCurrentOrg.Selected.Result), true, false).  

 

In either case you'll need to figure out the correct control name and syntax for selecting the value from the desired control.

ttaylor
Level: Powered On

Re: Hiding all buttons on page until dropdown selected

I just realized that I added a dash in my SharePoint list so when user navigates from the home screen to this screen, I didn't want any organization to show. Does that makes sense?

Highlighted
Super User
Super User

Re: Hiding all buttons on page until dropdown selected

@ttaylor 

Instead, put this code in the Visible property for each green button.  I assume your dash has no leading or trailer spaces.

 

If(Dropdown.Selected.Value<>"-",true,false)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,895)