Skip to main content

Notifications

Community site session details

Community site session details

Session Id : wf9tvIvDqzfhyiuaUHPEhd
Power Apps - Building Power Apps
Unanswered

Enable button to Navigate when in View Mode

Like (0) ShareShare
ReportReport
Posted on 24 Nov 2023 13:05:16 by

Hi. I am currently working on a two-page form. I noticed that when the form is in View mode, the button is visible and not set to disable- but when I click on it, nothing happens. It should navigate on the second page of the form. Any fix on this? Thank you! 

Categories:
  • timl Profile Picture
    34,978 Super User 2025 Season 1 on 24 Nov 2023 at 15:50:21
    Re: Enable button to Navigate when in View Mode

    Hi @joieeee09 

    I'm surprised that setting the DisplayMode of both the card and button didn't work for you. Do you have formula that switches the form between edit and view modes by calling the EditForm and ViewForm functions?

  • joieeee09 Profile Picture
    on 24 Nov 2023 at 15:31:57
    Re: Enable button to Navigate when in View Mode

    Thanks, everyone. I set the Display Mode of the datacard to Edit as well as the button but still didn't work. As a resort, I had to put the button out of the Form page and it worked. 

  • timl Profile Picture
    34,978 Super User 2025 Season 1 on 24 Nov 2023 at 15:23:21
    Re: Enable button to Navigate when in View Mode

    Hi @joieeee09 

    If you explicitly set the DisplayMode property of your card (DataCard1) to Edit, the call to Navigate in Button4_2 should work successfully even when the Form control is in View mode.

     

    timl_0-1700839239388.png

     

  • joieeee09 Profile Picture
    on 24 Nov 2023 at 14:40:55
    Re: Enable button to Navigate when in View Mode

    Sorry. The text formats were changed, it should not be in bold, underline, and italic. 😄

  • joieeee09 Profile Picture
    on 24 Nov 2023 at 14:39:55
    Re: Enable button to Navigate when in View Mode

    I already removed: 

    If(
    Or(
    IsBlank(DataCardValue17),
    IsBlank(DataCardValue18),
    IsBlank(DataCardValue19),
    IsBlank(DataCardValue20),
    IsBlank(DataCardValue21),
    IsBlank(DataCardValue22),
    IsBlank(Radio1.Selected.Value),
    IsBlank(RichTextEditor1),
    IsBlank(RichTextEditor2)), DisplayMode.Disabled,
    If(
    And(
    Radio1.Selected.Value = "Other",
    IsBlank(DataCardValue25)), DisplayMode.Disabled
    ))

     

    Instead, I put SubmitForm(Page1) on the On Select of the button and Navigate(NextPage) on the On Success of the form. It does the same job which is to restrict the user to go to the next page without filling up the fields on the first page. 

     

    Now, on the Display Mode of the button, I put:

    If(
    Page1.Mode = FormMode.View, DisplayMode.Edit, DisplayMode.View
    )

    But still, I can't click on the button when in View mode. 

  • ANB Profile Picture
    7,081 Super User 2025 Season 1 on 24 Nov 2023 at 14:30:48
    Re: Enable button to Navigate when in View Mode

    @joieeee09 , Have you checked my previous response? Try this 

    Instead of using the IsBlank(DataCardValue17) use IsBlank(DataCardValue17.Text) if this is Input text. Do the same for all the other controls on the display mode of button.

     

    Thanks,

    ANB

  • joieeee09 Profile Picture
    on 24 Nov 2023 at 14:22:44
    Re: Enable button to Navigate when in View Mode

    joieeee09_0-1700835750255.png

     

  • joieeee09 Profile Picture
    on 24 Nov 2023 at 14:15:33
    Re: Enable button to Navigate when in View Mode

    Still not working. I have added If(Page1.Mode = FormMode.View, DisplayMode.Edit) on the Display Mode of the button but nothing happened. 

  • ANB Profile Picture
    7,081 Super User 2025 Season 1 on 24 Nov 2023 at 14:02:35
    Re: Enable button to Navigate when in View Mode

    @joieeee09 , Instead of using the IsBlank(DataCardValue17) use IsBlank(DataCardValue17.Text) if this is Input text. Do the same for all the other controls on the display mode of button.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.👍

    Thanks,
    ANB


  • charlessexton Profile Picture
    878 on 24 Nov 2023 at 14:00:10
    Re: Enable button to Navigate when in View Mode

    What's in the DisplayMode for the button? Your screenshot shows the datacard that the button is in, but the button has its own version.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,788 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard