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="^$" />
<add key="DefaultTemplateMask2" value=
"^([^\./:*?<>"|\\][^/:*?<>"|\\]*)
((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)
*$" />
<add key="DefaultTemplateMask3" value=
"^(<SharedTemplatesFolder>|<RolesFolder>)
((\/|\\){1}[^\./:*?<>"|\\][^/:*?<>"|\\]*)
*$" />
</appSettings>
DefaultTemplateMask1
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.
DefaultTemplateMask2
Accepts just a file name, or a pathname that does not start with .. (parent folder), . (current folder), // or \\.
DefaultTemplateMask3
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