cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Community Champion
Community Champion

Visible on ButtonPressed

Hi PG

 

In Project Siena, any items (eg Shape, Box) can be triggered, example Visibility using Button.Pressed function.

Example: 

- A TextBox.Visible = Button1.Pressed

- So, when PRESSING Button1, TextBox will be visible "true", and false when button is released.

 

I wish this function can be extended in PowerApps.

(I have tried for months and hopefully this function will restore OR maybe I am wrong in the setting?)

 

Moreoever, I suspect this maybe due to missing function of PRESSED as shown in tutorial.

 

IT is possible in Project SienaIT is possible in Project SienaPressed ... not shown in PowerApps StudioPressed ... not shown in PowerApps Studio

 

Thanks in advance.

 

Note:  I am using this function to trigger TImer so that I can achieve dual function

- Button.OnSelect = ShortPress

- Button.Pressed (with timer, say, 1 sec ) = LongPress

 

This is make the apps function better, even withotu PowerApps providing LONG PRESS function.

 

TQ and have a nice day.

hpkeong
1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps
Power Apps

As you mentioned, the Pressed property of the button in PowerApps is different than the one in Siena - and the documentation from PowerApps is misleading: it’s not set to true while the button is pressed, it’s more of a “pulse” property – when you press the button (or to be more specific, when you release the button), the Pressed value will be set to true, and immediately after it will be set to false (I'll talk to the documentation owner to have it updated).

 

The main scenario for the Pressed property is in a Reset scenario. All controls that have a Reset property need the value bound to that property to change for the data flow to “tell” the control that its reset property changed. So if you want to reset one (or more) controls with a click of a button, you can set the properties of those controls to ‘Button1.Pressed’ and you’ll get the controls reset when the button is pressed.

 

I'd suggest you create a new feature request in the PowerApps Ideas Board to have this functionality from Siena brought to PowerApps, if your solution with timers does not work for you.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi Hpkeong,

 

Thanks for feedback.

 

I have checked the documentation about Button control, From the documentation we know that it does have a Pressed property. But on the app, it seems that there is no Pressed property can be used.

4.PNG

 

I am going to confirm the Pressed property of Button control on my side. I will back once I got any response.

 

About the ShortPress and LongPress, I guess it should be a good addition for PowerApps, please consider to submit an idea at Flow Ideas Forum, hope PGs will take it into consideration in the future releases:
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas


Best regards,
Mabel Mao

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Power Apps
Power Apps

As you mentioned, the Pressed property of the button in PowerApps is different than the one in Siena - and the documentation from PowerApps is misleading: it’s not set to true while the button is pressed, it’s more of a “pulse” property – when you press the button (or to be more specific, when you release the button), the Pressed value will be set to true, and immediately after it will be set to false (I'll talk to the documentation owner to have it updated).

 

The main scenario for the Pressed property is in a Reset scenario. All controls that have a Reset property need the value bound to that property to change for the data flow to “tell” the control that its reset property changed. So if you want to reset one (or more) controls with a click of a button, you can set the properties of those controls to ‘Button1.Pressed’ and you’ll get the controls reset when the button is pressed.

 

I'd suggest you create a new feature request in the PowerApps Ideas Board to have this functionality from Siena brought to PowerApps, if your solution with timers does not work for you.

View solution in original post

Hi @CarlosFigueira @v-yamao-msft

 

Really appreciate of the detail explanation of Button-Pressed function.

 

Main reason of comparison is because I can get I want in Siena but not in PowerApps, which supposed to extend all usefull functions, 100% from Siena.

 

I have seen Touch Force in iPhone, which for myself, is a waste of user pocket money on force touch sensor on the screen to detect and trigger action based on differential in pressure.

For me, a stupid and simple ideas by using Timer + Press-Hold can achieve almost similar function without having investing in expensive pressure sensor.

 

I used to use Invisible Button / Visible Buttons to have different functions when OnSelect, such as:

- Navigate to another screens (yes this is normally done)

- Pop-Up another Gallery (on the same screen, using UpdateContext), to trigger Phone, SMS and Whtsapp

- Add records

- Edit Records,...(See below)

 

So, I guess this simple and yet useful action can make PowerApps creation more compact (less screens) but more funciton within a screen (and I found faster response without navigation).

 

I have post the ideas and wish that can be accomplished to make PowerApps more flexible in making a Functional Apps yet very userfriendly, attractive.


Correct me if I am wrong totally.

 

TQ

 

Click on Circle, Pop Up another Gallery for Call, SMS, Whatsapp, based on the temp contextClick on Circle, Pop Up another Gallery for Call, SMS, Whatsapp, based on the temp contextEdit, Add and trigger to another screes, Click on Detail for editing biodata.Edit, Add and trigger to another screes, Click on Detail for editing biodata.

hpkeong

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,638)