I have a Power Apps form and what I am trying to achieve is that when the form is loading, it should check whether submitted = yes, then, the form should be read only or disabled and should not be allowed to edit.
Any advise how to achieve this on an entire form instead of checking the condition individually on all fields on the form?
My earlier post was wrong. You'll want to use this code in an OnSelect property of the button or gallery that leads you to the form. Alternatively, you could also choose to put this in the OnVisible property of the screen containing the form.