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