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

Need to disable button if User has value in column

Hi All,

 

I have a formula that says 

 

If(IsBlank(ThisItem.Start), DisplayMode.Disabled,DisplayMode.Edit)

 

How can I make this user specific. ie if this item is created by a particular user and in this item if the start column has value and rest items created by the same person does not have a value then the button must be disabled.

13 REPLIES 13

@aswin12345 ,

Screen OnVisible would be a good place for the formula - whenever you run this, it refreshes the variables and waits for you to press Play.

You did not ask about adding items, so my model did not allow for this. If you set vPlay to false as above, it would be a good starting point. Note that this is a logic, not a programming/code problem, so please spend some time adjusting the Variables, you might get what you want. I am happy to assist with specific questions, but cannot see you model and therefore cannot test any of it.

 

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.

Hi @aswin12345 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

Hi @WarrenBelz 

 

what I want is when i click on play button in an item all the other play buttons must be disabled I have achieved that by using a simple work around that when I click on play button which triggers visibility of a rectangle1 inside the item of the gallery using the formula If(IsBlank(ThisItem.Start), "false", "true") and then i use that trigger to make visible another rectangale5 (outside the gallery) to be visible by using If(Rectangle1.Visible,true,false) then i have inserted If(Rectangle5.Visible, DisplayMode.Disabled,DisplayMode.Edit) in the play button so if I click on a play button all the play button in other items or entries becomes disabled. Thats what i want and I have achieved that but my issue is whenever the page refreshes or a new item is added to the gallery (list) the disabled buttons becomes enabled or ready to edit thats my concern. Hope you will be able to help.

@aswin12345 ,

This is a logic rather than a coding exercise and I built the model to show you the variety of variables that you can set/reset to achieve the result you want. It seems that you need to set some values when a new item is added or the gallery refreshed. You tagged me for assistance and I am trying to provide that, but ultimately I cannot test exactly what you want.

Have you tried setting the variables (particularly vPlay) to different values with new items and refreshing to see what result is achieved? 

 

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.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (47,042)