cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kingy61422
Helper IV
Helper IV

Button Visibility

I have a button that I want to be visible if the "Awaiting Approval" column of the selected item is "Yes". Any help would be appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions

In that case, you would probably want to use a variable for the selected gallery item.

To do that, go to the OnSelect property of the control you're using to select the item, and enter:

Set(varSelected, ThisItem)

Then the Visible formula for the button would be:

varSelected.'Awaiting Approval'.Value="Yes"

This will also make it easier to use other Values from a selected Gallery Item if you need to.

View solution in original post

4 REPLIES 4
Anonymous_Hippo
Super User
Super User

Hello @kingy61422 ,

 

In the button visible property you need to add.

 

If you are using VarRecord variable

If(VarRecord.'Awaiting Aproval'="Yes",true,false)

 

Else you can use the same logic based on how you are selecting your current item

 

Hope this helps

 

Cheers !

 

Griffin_C
Frequent Visitor

Assuming you're using a gallery to select the item, in the Visible property of the button, you can enter:

Gallery.Selected.'Awaiting Approval'.Value="Yes"

Where "Gallery" is the name of the gallery where you're selecting the item.

Would this work with multiple galleries going to one screen?

In that case, you would probably want to use a variable for the selected gallery item.

To do that, go to the OnSelect property of the control you're using to select the item, and enter:

Set(varSelected, ThisItem)

Then the Visible formula for the button would be:

varSelected.'Awaiting Approval'.Value="Yes"

This will also make it easier to use other Values from a selected Gallery Item if you need to.

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (3,773)