Save button Logic

What are you trying to do? Did you check out logic hooks?