I am looking for an attribute from doctype object so that I can identify form is for saving or update. Please help me.