Running agent on nonsaved document

I am attempting to implement an action on a form for my domino database. I want the user to be able to create the document, then click on the action (which will run lotusscript code) before that document has been saved. Is this possible? I have tried implementing the action as the actual lotusscript code, or implementing the action so it calls an agent. Neither work unless the doc is saved. Any tips?

Subject: Handle to doc

The big thing is which objects you use and how you get a handle to them, but you can definitely run LS from buttons or agents on documents.

If you give more detail or post the script, I could provide clearer advice…

Dave

Chub Toad, LLC