Hello everyone,
I am building a PowerApp with a form to enter Data into a Sharepoint list. This is working fine. However, I want to validate the input, before I submit the form. I am happy with the validation and as soon as the input is not valid anymore, the app automatically displays the corresponding error message below the form input.
Now I am trying to disable the Submit-Button as soon as the error-message is shown. I added the following code to the DisplayMode of the button:
If(
!IsBlank(ErrorMessage8.Text);
DisplayMode.Disabled;
DisplayMode.Edit
)
Even though the ErrorMessage8 has Text in it, in the button it is saying the ErrorMessage8.Text is empty:



What do I need to do in order to access the text of the ErrorMessage (or any other) from the Button?
Thanks for your help!