I have a phone template app connected to a SharePoint list with a single line of text column called Request Status. I have a button in the Edit view that is suppose to update the Request Status to "New" when clicked. The button OnSelect forumal is : UpdateContext({RequestStatusVar: "New"})
The Default value of my Request Status field is set to RequestStatusVar. When I test it out for the first time by creating a new form, I click the button which sets the variable to "New" and Request Status is set to "New" as well. Then when I click on the Add new Item icon from the Display view, it shows that Request Status is set to "New" before I have even clicked the button for this record.
I do not understand why the variable is set to "New" on the new record. It seems that variable values carry over to new records? Why is this the case? What other code would I need to prevent this?