8. A non-transitory computer-readable storage device storing program instructions that when executed by a computer cause the computer to perform a method for generating queries to search for matching forms in a set of previously submitted forms, the method comprising: obtaining a form template for previously submitted form instances, wherein the form template includes a form schema which specifies field names and data types in fields in the previously submitted form instances associated with the form template, wherein the previously submitted form instances were created using said form template; generating a user interface dependent on the same form template used to create the previously submitted form instances, wherein the user interface comprises input options for accepting search criteria from a user, wherein the input options correspond to one or more fields defined by the form schema; generating a query based on search criteria entered by the user for one or more fields defined by the form schema; running the query against the set of previously submitted forms to identify matching forms; and generating a list of the matching forms.
8. A non-transitory computer-readable storage device storing program instructions that when executed by a computer cause the computer to perform a method for generating queries to search for matching forms in a set of previously submitted forms, the method comprising: obtaining a form template for previously submitted form instances, wherein the form template includes a form schema which specifies field names and data types in fields in the previously submitted form instances associated with the form template, wherein the previously submitted form instances were created using said form template; generating a user interface dependent on the same form template used to create the previously submitted form instances, wherein the user interface comprises input options for accepting search criteria from a user, wherein the input options correspond to one or more fields defined by the form schema; generating a query based on search criteria entered by the user for one or more fields defined by the form schema; running the query against the set of previously submitted forms to identify matching forms; and generating a list of the matching forms. 10. The non-transitory computer-readable storage device of claim 8 , wherein running the query involves running the query against forms in the set of previously submitted forms which contain matching fields for the search criteria, but which have a different structure than the structure defined by the form template.