How to know the form is accessed via the edit link?