cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jasoned
Level: Powered On

OnSelect not working inside of Data Card

I am trying to make a link based on a field in PowerApps. I want to be able to click on an icon inside of a datacard from a form. However, when I click on that icon nothing happens.  It works outside of the Data Card, but I want the icon to be able to scroll with the card so I have to put it inside. Does anybody have any suggestions?

 

Capture2018.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
ChrisR
Level 8

Re: OnSelect not working inside of Data Card

I was able to reproduce your issue.  The only way I was able to get around it was to set the form to displaymode.edit and then change the individual cards to displaymode.view.  This allowed the icon to become active while only viewing the data.

 

Not exactly a scalpel like solution... more like a baseball bat.

 

 

Chris - IW Mentor PowerApps Training

Microsoft Employee

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.

12 REPLIES 12
Community Support Team
Community Support Team

Re: OnSelect not working inside of Data Card

Hi @jasoned,

 

The control added within the DataCard should work.

Please make sure the OnSelect property has valid formula configured.

Understand Behavior formula in PowerApps

 

Besides, make sure the the control has been configrued to the front:

108.PNG

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jasoned
Level: Powered On

Re: OnSelect not working inside of Data Card

Thank you for the quick response. Unfortunately this didn't work. From the beginning I had the icon in the front and it still didn't link out. I was using the simple launch function. I tried Launch("https://powerusers.microsoft.com"), and that didn't work. As soon as I took it out of the card it worked fine.  I tried it inside of several card.  There were no hidden or clear items on top of the card, so I am at a loss as to what is going on. 

ChrisR
Level 8

Re: OnSelect not working inside of Data Card

The icon being manually added, I don't see how this would be an issue, however, double check the icon's DisplayMode and make sure it's set to Edit.

 

 

 

Chris - IW Mentor PowerApps Training

jasoned
Level: Powered On

Re: OnSelect not working inside of Data Card

I completely agree...  DisplayMode is set to Edit. Below is a screenshot of my settings. Again, when I copy and paste this exact icon outside of the card, the link works fine.  Not sure if it matters, but I the form is getting its data from a SharePoint List. 

 

2018-09-13_9-17-05.png

ChrisR
Level 8

Re: OnSelect not working inside of Data Card

Does the icon fade when hovering?

 

 

 

Chris - IW Mentor PowerApps Training

jasoned
Level: Powered On

Re: OnSelect not working inside of Data Card

It does not.

ChrisR
Level 8

Re: OnSelect not working inside of Data Card

I know it has been discussed, but it really sounds like something else is in front.

 

At this point, I would get a baseline proof and then work my way back up to the form in question.  Create new screen, add new form, select just the card in question, add button, and see if it works.

 

Wish I had a better answer,

 

Chris - IW Mentor PowerApps Training

 

 

 

jasoned
Level: Powered On

Re: OnSelect not working inside of Data Card

This helped! When I did this I still got the same issue, but I found that when I changed the FormMode to Edit, the link worked.  When I changed the FormMode back to View, the link no longer worked. The DisplayMode for the icon was always at Edit.  That said, I really need the link to work in both View and Edit FormMode.

ChrisR
Level 8

Re: OnSelect not working inside of Data Card

I was able to reproduce your issue.  The only way I was able to get around it was to set the form to displaymode.edit and then change the individual cards to displaymode.view.  This allowed the icon to become active while only viewing the data.

 

Not exactly a scalpel like solution... more like a baseball bat.

 

 

Chris - IW Mentor PowerApps Training

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 84 members 4,547 guests
Please welcome our newest community members: