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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Disable Submit Button ...
Power Apps
Unanswered

Disable Submit Button on EditForm Unless Any Field Input or Selection Has Changed

(0) ShareShare
ReportReport
Posted on by 282

I want my users to launch the edit form I have, but not be able to click "Submit" if they haven't updated any of the fields.

 

I've been unable to find a way (Googled for an hour) to do this.

 

I know I can set a variable for each field's OnChange property, and render the button Disabled if any of them are false. I have thirty fields though, and it seems extremely inefficient.

 

I thought the "Unsaved" property would work like this...

       If('MyEditForm.Unsaved', Edit, Disabled)

But when I test it, and change a value in one of the fields, the button is not activated.

 

Thanks for any assistance with this question.

Categories:
I have the same question (0)
  • Chris-D Profile Picture
    1,246 on at

    I'm pretty sure OnChange on each control is the only way unfortunately. 

     

    If you wanted the code tidier and all in one place, I've done things like this with a timer. Set it to 100ms, fast enough for the user but slow enough it's not going to hog the CPU and check each control in there. You still have to manually add an entry for every control though.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard