How do I hide navigation buttons until a dropdown selection is made or the user clicks add new organization? Please see attached example.
Solved! Go to Solution.
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."
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."
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.
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?
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."
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
172 | |
62 | |
32 | |
31 |
User | Count |
---|---|
338 | |
270 | |
105 | |
72 | |
56 |