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 box. Build validates the template names when the user saves changes to the Options dialog box 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 below. (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