Submit or edit a form