cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Re: OnSelect not working inside of Data Card

Hello,

This happens because the Form control does not allow user interaction in "View" mode. Even when the child control's mode (Icon control in this case) is set to "Edit", the parent DisplayMode would be respected.

Similar case can be reproduced with other container controls. Example:

1. Create a blank app and add a Gallery control.

2. Add a Button control to the gallery and set the OnSelect formula

3. Set Gallery1.DisplayMode = DisplayMode.View

4. Set Button1.DisplayMode = DisplayMode.Edit

5. Click on the button and observe that the OnSelect formula is not executed. Other interactions (such as Hover effects) do not work as well.

View solution in original post

Highlighted
Frequent Visitor

Re: OnSelect not working inside of Data Card

This works, but I have tons cards. This is going to take me a while change all of them and to figure out the best way to go back and forth from edit to display on each card.

 

Thanks for figuring this out!

Highlighted
Super User
Super User

Re: OnSelect not working inside of Data Card

Hi everyone,

 

I can't help to feel that the DisplayMode of the controls inside the card should be separate from the card. If they need to be the same as the card one should use Parent.DisplayMode.

 

Highlighted
Advocate III
Advocate III

Re: OnSelect not working inside of Data Card

@ChrisRunbelievable but true. So I navigate now using EditForm(ViewForm1) to bring it up in Edit mode, but I had to disable all the cards with data controls, except the one with the button I need to work in View mode...

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (12,446)