I would like to be able to set a resetOnEdit_If expression. Similar to show_if, required_if, editable_if, etc.
This would allow the app developer to determine exactly when the column should reset, typically in conjunction with an initial value formula.
A specific case that I’m running into is that I don’t want the value to reset when the user clicks a data-change action button, but I do want the value to reset when they open the record to edit in a specific form. So I would use a context(“view”) = expression. I’m sure there are other case where it would be helpful.
You may wonder why don’t I just write a more complex expression for initial value, such as a IF statement, and specify an else expression. In my specific case again, I neither care, or know, what the original value of the column was before I’m wanting to reset it to something. I worked around this issue for now by adding a new column which saves the old value.
Kind of an edge-case I suppose, but given how similar it would be to required_if,editable_if,etc… I don’t see any reason not to include this option.