Frappe javacript check if doc is new or editing

Hello I know to check doc if its not save or save is doc.__unsaved how about a document is new or its editing? Any ideas? :slight_smile:

Ok I found the solution its doc.__islocal :smile:

1 Like