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 / DisplayMode not functi...
Power Apps
Answered

DisplayMode not functioning

(0) ShareShare
ReportReport
Posted on by 118

I'm using a button that the displaymode changes if 2 search boxes match after a filter is applied.

But the button will not change to Edit mode when the sbox-Student_ID_2 and the gal_StudentID match & the sbox-SCode_2 and the gal_SCode match.   If they both match then the button should switch to edit mode.

 

Text = "Yes this is My ID Goto Next Screen"

Visible = true

DisplayMode = 

If( 

      (!IsBlank('sbox-Student_ID_2'.Text) && !IsBlank(gal_StudentID) && Len('sbox-Student_ID_2'.Text) = 7 && !IsBlank(
           LookUp(
                     'Student Thank You Cards for Donors',
                     ('sbox-Student_ID_2'.Text) = Student_ID
            )
      )) || (!IsBlank('sbox-SCode_2'.Text) && !IsBlank(gal_SCode) && Len('sbox-SCode_2'.Text) = 9 && !IsBlank(
          LookUp(
                   'Student Thank You Cards for Donors',
                   ('sbox-SCode_2'.Text) = SCode
           )
     )),
     DisplayMode.Edit,
     DisplayMode.Disabled
  )

 

 

Jeffrey_H_0-1707942721064.png

 

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

    Hi @Jeffrey_H ,

    I would have thought you would just need this

    If(
     LookUp(
     'Student Thank You Cards for Donors',
     'sbox-Student_ID_2'.Text) = Student_ID
     ).SCode = 'sbox-SCode_2'.Text,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Jeffrey_H Profile Picture
    118 on at

    One more question how do I force a text input box to "Proper" text ? 

    Or have it auto change when typing into box.

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @Jeffrey_H ,

    It is easy enough to force the output to Proper in the Update of the data card 

    Proper(TextBoxName.Text)

    but a bit more complex if you want to do it immediately.

  • Jeffrey_H Profile Picture
    118 on at

    I would like to be immediately, if possible.

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    @Jeffrey_H ,

    OnChange of the Text Input

    UpdateContext({varText: Proper(Self.Text)});
    Reset(Self)

    The Default of the Text Input

    Coalesce(
     varText,
     Parent.Default
    )

    and put this at Screen OnVisible and also after you submit the Form - I assume here you also want to display the saved data after it is submitted.

    UpdateContext({varText: Blank()});

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Jeffrey_H Profile Picture
    118 on at

    OnVisible - not seen

    I am not using a form, just a container and gallery

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    @Jeffrey_H 

    The Default would simply be varText.

    You can reset it with the bottom code whenever it is necessary 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard