I have a canvas powerapp with one field and a submit button, when I press at the submit button's "DisplayMode" entry I have this code,
If(EditForm1.Valid,DisplayMode.Edit , DisplayMode.Disabled) And(If(Len(DataCardValue5.Text) <= 30, DisplayMode.Edit, Disabled))
The first part of the code is to not let any entries happen if one is invalid, and the second is to stop an entry if the length of the text is more 30. how can I make them both work together?
PowerApps says that there is an error in my formula