Developer Documentation Library > Interviewer - Server > Configuration and customization > Web configuration files > Settings for the Build activity > Default template names
 
Default template names
When users create questionnaires, they use templates to specify how questions will be formatted during the interview. Users can set default templates for a project using the Options dialog. Build validates the template names when the user saves changes to the Options dialog and when it creates a new questionnaire file using the default templates.
The formats for valid template file and path names are defined by the DefaultTemplateMask keys in the Web.config file, as shown in the following example. (Some of the lines have been split and indented for ease of reading.)
<appSettings>
  <add key="DefaultTemplateMask1" value="^$" />      See note 1
  <add key="DefaultTemplateMask2" value=
    "^([^\./:*?<>"|\\][^/:*?<>"|\\]*)
    ((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)
    *$" />                                           See note 2
  <add key="DefaultTemplateMask3" value=
    "^(<SharedTemplatesFolder>|<RolesFolder>)
    ((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)
    *$" />                                           See note 3
</appSettings>
Notes
1 Accepts an empty string as the template name. This allows the user to create a question with no specific template attached. When the question appears during the interview it will use whatever was the most recent template loaded.
2 Accepts just a file name, or a pathname that does not start with .. (parent folder), . (current folder), // or \\.
3 Accepts files in the SharedTemplates or Roles folders or in subfolders of those folders. Pathnames must not contain .. (parent folder), . (current folder), // or \\.
See also
Settings for the Build activity