through a dialog box or in full window mode.
'Simply add a temporary field in the notesdocument object
'that you'll pass to the DialogBox method of the NotesUIWorkspace.
'...doc has been set at this point...
Set item = New notesitem(doc, "IsDialogBox", True)
item.SaveToDisk = False 'The item cannot be saved with the NotesDocument
Call ws.dialogbox("FormName", False, False, True, True, True, True, _
'...Now all you have to do is test for the "IsDialogBox" field
'in the Hide-when formulas of your form.
'Good luck in your projects!