cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ttaylor
Helper III
Helper III

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
mdevaney
Super User III
Super User III

@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
mdevaney
Super User III
Super User III

@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

LRVinNC
Super User
Super User

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.

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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?

@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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (95,422)