Announcements
Hi,I have a form that by default is in view mode. However while the form is in view mode I want a button that is clickable so a user can go to a details screen. For example a user can select a planned service from a gallery, this will show a form in view mode with all the details with a button for the location that links to the location screen showing details particular to that location.I added a button to the data card in my form but despite setting displaymode.edit onselect does not work until I change the form to displaymode.edit. Displaymode for the button isn't inheriting its displaymode from the form so I'm not sure why its not working.Is there a way to have a button that has displaymode.edit inside a form that is set to displaymode.view?
Hi @Naps ,
Other than putting the button "on top" of the form, unfortunately this is one of the annoying issues with View mode in Forms.
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.
Unfortunately I came to the same conclusion. I don't understand why this is not possible (the option is even there in the menu...). Without clickable objects in a view form it is really hard to make an app that can drill down on data in a sensible way.For now I've decided to set displaymode.edit.
There IS a way to do this. The key is to always keep the form in Edit mode, but to individually set the DisplayMode of the cards in your form. Consult this post. https://powerusers.microsoft.com/t5/Building-Power-Apps/Enable-button-when-display-mode-is-view/td-p/628088
@Nap This is a YouTube video that shows how to do this with a custom data card: https://www.youtube.com/watch?app=desktop&v=Nps_PamJ0L8
Nice. This is much more elegant.
Update 2024 -- If this solution worked previously, it currently does not. For additional confirmation, see latest video comments
I was able to get this to work by bringing the control outside of the form and wrapping them both in a container. It still allowed positioning it just as if it were on the form itself.
Still floating thou?
You're right, it is still floating. I didn't originally notice because the form didn't have to scroll.
I tried something different that seems to work fine and does not float. With the control into the DataCard, I changed the DataCard Display Mode to Edit. I don't have any controls in this card which are editable, but if you do you should be able to set the Card's Display Mode based on the Form's Mode property. This is similar to whatcarlilelance said above, but I would try keeping each card in edit mode rather than the entire form. Then you just have to manage the Display Mode of the Controls in that specific card, rather than the mode of all of the cards on your form.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 491
WarrenBelz 407 Most Valuable Professional
11manish 331