| 
     
 | 
You can check for the Form type of the document that the user is creating a response document for as follows:
@If(Form="Main";
  @Command([Compose];"Response");
  @Prompt([OK];"Select Main";
    "Select a Main document for which you wish to create a response.")
)