web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Clickable button insid...
Power Apps
Answered

Clickable button inside view form

(1) ShareShare
ReportReport
Posted on by 55

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?

Naps_0-1629944238815.png

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,764 Most Valuable Professional on at

    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.

  • Naps Profile Picture
    55 on at

    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.

  • carlilelance Profile Picture
    353 on at

    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

  • Alex-W Profile Picture
    327 on at

    @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 

  • carlilelance Profile Picture
    353 on at

    Nice. This is much more elegant. 

  • LittleFjord Profile Picture
    11 on at

    Update 2024 -- If this solution worked previously, it currently does not. For additional confirmation, see latest video comments

  • GBurg Profile Picture
    6 on at

    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.

     

    GBurg_0-1707497073521.png

     

  • CU24070651-0 Profile Picture
    on at

    Still floating thou? 

  • GBurg Profile Picture
    6 on at

    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 what
    carlilelance 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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard