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 / Buttons reset back to ...
Power Apps
Answered

Buttons reset back to default when clicked

(0) ShareShare
ReportReport
Posted on by 165

Hi, Im trying to disable the approve/reject button when the textbox is blank.

 

I have set the displaymode for the button as If(IsBlank(TextInput1.Text),Disabled,Edit). it seems to initially work fine.

 

however, once i populate the textbox and approve/reject (botton click), all other buttons get active (reset back to normal) even though the text box is blank.

Ill appreciate any insight in solving this

 

damiosiks_1-1656079538842.png

damiosiks_2-1656081123841.png

 

 

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @damiosiks , Add Reset(TextInput1) to the end of your OnSelect property formula. Make sure the the Default Property value of TextInput1 is set to ""

     

     

    Regards,
    Ahmed
    If my reply helped you, please give a 👍. And if it has solved your issue, please consider Accept it as the Solution to help other members in the community find it more.

  • damiosiks Profile Picture
    165 on at

    Hi @AhmedSalih , it still doesnt work

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @damiosiks, Well, I have tested on a similar design and it is working just fine for me.  Whenever I type in any of those TextInput in this gallery, The button will be in an edit mode, and once clicked, the reset function reset the TextInput to the default with is Blank and button will be grayed out. 

     

    AhmedSalih_0-1656100724630.pngAhmedSalih_1-1656100755018.png

     

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @damiosiks ,

     

    Could you please share more details about your scenario? Why are you using 2 Patch function to update same item in same data source?

     

    Please modify the OnSelect of the buttons, combine the two patch function together and:

    1. set the Default property of the TextInput1 to ThisItem.PM_Comments

    2. DisplayMode of the two buttons:

    If(TextInput1.Text = ThisItem.PM_Comments || IsBlank(ThisItem.PM_Comments), DisplayMode.Disabled, DisplayMode.Edit)

    so when no modification on the text input box or it's blank, buttons will be disabled.

     

    Best regards,

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard