Hi all,
I am developing an application, where it is really important to understand how many times the editform has been saved. However, I have two save buttons in my editform, one that merely saves the data that has been stored in the form, but stays on the page, and another, which saves and takes the user to the mainpage.
I would only like to have the latter add a number, hence I tried the below formula in the Update Property of the datacard. But that does not seem to work:
If(KaydetAndExit.Pressed, Value(ThisItem.EditCount) + 1,EditCountDataCard.Text)
The below functions works for whenever a person saves the editform, however, the problem is users might save the form often if they go for a break etc. But we only want them to have a number added when the final form is finished and the Save+GoMainPage gets clicked.
If(Form1.Mode = FormMode.Edit, Value(ThisItem.EditCount) + 1, Form1.Mode =New, Value(ThisItem.EditCount) + 1,EditCountDataCard.Text)