Invalid or Non-Existent Document

Attempting to refresh a form by clearing the fields. I am using the formula below in a button…

@SetField(“saveoptions”; 0);

@Command([CloseWindow]);

@Command([Compose]; “”; “form1”)

…but am prompted with an “Invalid or Non-Existent Document” error when attempting to refresh. Any ideas?

Subject: Invalid or Non-Existent Document

Does “form1” exist as a form within the current database?

Kiers

Subject: RE: Invalid or Non-Existent Document

Yes it does. Its the form that is being used and Im simply trying to refresh the form and clear the fields by closing the current form and opening a new one.

Subject: Invalid or Non-Existent Document

try:

@Command([Compose]; “form1”)

Subject: Invalid or Non-Existent Document

SaveOptions is a text field - try:

@SetField(“SaveOptions”; “0”)

Subject: RE: Invalid or Non-Existent Document

same error unfortunately