Access previous value of field?

Hi Jared -

Unfortunately, I don’t think there is a way without some javascript.

In theory, you could write a simple UI only field such as:

{{$Model.Account.originals.{{Id}}.Name}}

However, merge syntax inside of merge syntax isn’t supported currently and since there is no way to “concatenate” inside of a formula and then process merge syntax to the concatenated result your left with JS.

You have a couple of options:

1) Create a UI only field for each original you care about.  Then, write a JS snippet that is triggered on model events like row.updated.  In the JS, update the UI only field (make sure to use updateRow api) to correspond to originals values and then use the UI only field anywhere on your page.

2) Write a field renderer that displays the original value that you want displayed.  On your component (e.g. field editor, table, etc.) add a field for the field that you are concerned with (e.g. Name) and then set to use the custom renderer.  It’s important to use the actual field that you care about in all cases because you want that field to re-render when it changes elsewhere in order to display the original.

Hope this helps!