I am essentially asking a very similar question to what has been asked before "I am using PowerApps to create a SharePoint Form. I want to have a data card for "Date" that the user can change when they are submitting a new form, but if they click edit in the app, it becomes read only and they cannot change it anymore. Is this possible?"
However, the solution that was given a few years back gets flagged with an invalid argument error:
DisplayMode = "If(SharePointForm1.Mode = FormMode.New, DisplayMode.Edit.View)"
I then found and tried this, and while it doesn't get flagged with an error, it does not seem to be actually making any effect on the function of my form:
DisplayMode = "If(SharePointForm1.Mode = FormMode.New, DisplayMode.Edit, DisplayMode.View)"
Then, I found this answer in these forums, and it sort of works to lock the field when the form is in edit mode, but this includes having the DefaultDate set to "today."
DisplayMode = If(SharePointForm1.Mode=FormMode.New,DisplayMode.Edit,DisplayMode.View)
In short, when the form is edited, it shows todays date, rather than keeping/locking in the date that was entered when the form was first submitted, like I want.
Any suggestions would be much appreciated. I am at a loss as how to further troubleshoot this,
Karissa