Jorge,
Take a look at Web Server FAQ #4 in the documents, this might be what you are wanting. Of course, you will need to do a conditional based on status of button. Also, on the form, you can go to the Advanced Tab since you are going from Button (Menu) to form without a browse to set the default action with a key value.
Alan