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?
Solved! Go to Solution.
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
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.
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:
Regards,
Michael
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.
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
It does not.
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
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.
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