cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rick_black
Advocate II
Advocate II

I want to disable a button until I have filled Data Power

I have two input fields txtemail and txtsubject that need input data and a submit button that patches. How does one use the displaymode to disable the button before all the input are in then enable it to submit. I was using Visible before and it spoils the interface.
1 REPLY 1
BCLS776
Super User
Super User

Try something like this in the DisplayMode property of the submit button:

If(
    IsBlank(txtemail.text) || IsBlank(txtsubject.text),
    DisplayMode.Disabled,
    DisplayMode.Edit
)
_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,145)