InterviewSettings Members

The InterviewSettings type exposes the following members.
Constructors

  NameDescription
Public methodInterviewSettings 
Contruct an InterviewSettings object with the default settings. Four parameters are required for any HotDocs Server interview request. The default (parameterless) constructor REQUIRES that these four parameters have values that can be found in the host application's web.config file. If any required value is not found there, the constructor will throw an exception.
Public methodInterviewSettings(String, String, String, String)
This constructor accepts values for the four "required" interview settings. HotDocs Server is unable to generate a functional browser-based interview without meaningful values for these five parameters.
Back to Top
Methods

  NameDescription
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Back to Top
Properties

  NameDescription
Public propertyAddHdMainDiv
Whether HotDocs should include in the returned HTML fragment an HTML DIV with its id set to "hdMainDiv". When a browser interview initializes, the interview is created dynamically inside this placeholder DIV. Your host application can choose to include that DIV within the host page itself (in which case you would set AddHdMainDiv to false), but by default AddHdMainDiv is set to true, meaning that HotDocs will include this placeholder DIV in the interview HTML fragment.
Public propertyAnswerFileDataServiceUrl
The URL of an OData data service to which requests for HotDocs answer file-based answer sources will be sent. Defaults to null (which disables the ability of browser interviews to request answer file-based answer sources).
Public propertyAnswerSummary
Settings that determine the formatting of Answer Summaries generated in the browser interview.
Public propertyCustomDataSources
A collection of custom answer sources. The dictionary Key is the name of a custom data source; the Value is the Url of the OData data service that will return the desired data. Defaults to an empty dictionary.
Public propertyStatic memberDefault
Returns the default parameters defined
Public propertyDefaultDateFormat
The default format example used when merging date values into text where no explicit or default format example has been specified.
Public propertyDefaultUnansweredFormat
This specifies what text will be merged when no answer has been provided for the requested variable. The choices are
ValueMerged into Text
Default(whichever of the below is specified on the server)
Nothing(nothing)
Underscores____________
Asterisks***
VarNameWithBrakets[Variable Name]
VarNameWithAsterisks*** Variable Name ***
Public propertyDisableAnswerSummary
HotDocs interviews normally allow users to request answer summaries from the interview toolbar. This property can remove the answer summary button from the toolbar. By default the property inherits the default value configured on the server.
Public propertyDisableDocumentPreview
Specifies that the Document Preview button should not appear on the interview toolbar, independent of whether a DocumentPreviewUrl has been specified or not. By default it respects the default behavior as configured on the server.
Public propertyDisableSaveAnswers
Specifies that the Save Answers button should not appear on the interview toolbar, independent of whether a SaveAnswersUrl has been specified or not. Defaults to False.
Public propertyDocumentPreviewUrl
The URL to which answers will be posted when a browser interview requests an HTML document preview. The HTTP response returned by that POST will be displayed to user as the preview.

If not specified, this property defaults to null (which omits the document preview feature).

Public propertyFormat
Dictates whether the returned interview will use the JavaScript runtime or the Silverlight runtime. The default behavior is "Default", which leaves the choice up to the HotDocs Server from which you request the interview.
Public propertyHonorCmpUnansweredFormat
Whether or not the Unanswered Variable Placeholder specified by a template author (in Component File Properties) is allowed to override the DefaultUnansweredFormat as configured on the server or set in the SDK.
Public propertyInterviewFilesUrl
The base URL from which the interview will request interview definitions and dialog element images. For JavaScript interviews, interview definitions are JavaScript files; for Silverlight interviews, interview definitions are compiled DLLs. HotDocs generates these interview definitions, but a host application must deliver them from the host application's own domain name.

A value for this property is required by the SDK.

Public propertyInterviewRuntimeUrl
The base Url from which HotDocs interview runtime files (including hdloader.js and other JavaScript files and/or Silverlight DLLs) will be fetched. To avoid security errors or the need for cross-domain policy files, the host application should serve these files itself (from its own domain name).

A value for this property is required by the SDK.

Public propertyLocale
The name of a HotDocs "Browser Language Module" that dictates locale-specific behavior and language for a HotDocs interview. If this property is null, US English ("en-US") behavior is assumed by default.
Public propertyMarkedVariables
List of marked variables
Public propertyNextFollowsOutline
Determines the order in which end users will progress through a browser interview when they click the Next and Previous navigation buttons. By default it defers to the behavior as configured on the server.
Public propertyPostInterviewUrl
The url to which finished interview answers will be posted. The page residing at this url is sometimes traditionally referred to as the "disposition page" -- since it is most often used to inform the user about the disposition (outcome) of the data they submitted.

A value for this property is required by the SDK.

Public propertyRoundTripUnusedAnswers
Whether the generated interview will include (and round-trip) the entire answer collection provided to the GetInterview call, or only those answers needed by the interview. Equivalent to the "StatelessInterview" property on the HotDocs Server API.
Public propertySaveAnswersUrl
The URL to which answers will be posted when user clicks the Save Answers button in the browser interview. The HTTP response returned to the browser will be displayed to user.

If no value is specified, this property defaults to null (which omits the Save Answers feature).

Public propertySettings
Collection of settings that can be specified when requesting a HotDocs interview. Values may be provided for the following settings:
Setting NameDescription
HotDocsJsUrlThe URL from which the web browser should request the HotDocs interview runtime files (including hdloader.js and other JavaScript files and/or Silverlight DLLs). To avoid security errors or complex cross-domain policy files, the host application must be able to serve these files itself (from its own domain name).
HotDocsCssUrlThe base URL from which the web browser should request the interview style sheet and related components. The setting itself designates the full URL to the "user" CSS style sheet (for styling JavaScript interviews). The default user style sheet is named "hdsuser.css", but customized style sheets can have any base file name. Browser interviews rely on this setting to derive URLs for several other style-related components: (1) For HotDocs 11 and later, a sprite-style image must be available at this same base URL (but with a .png file extension) containing all the interview images at expected offsets within the sprite; (2) For Silverlight interviews, a XAML style sheet will be requested from this same base URL (but with a .xaml file extension); (3) The "system" style sheet (hdssystem.css) must also be available at the same base URL (differing by file name).
HotDocsImageUrlIn HotDocs 11, this setting is ignored since interview images (used for all buttons, tree nodes, etc.) were replaced with a single sprite-style image at the same base URL as the user style sheet. For HotDocs 10.x interviews, this is the base URL from which each of the standard images will be requested.
InterviewDefUrlThe base URL from which the interview runtime (running in the browser) will request interview definition files. For JavaScript interviews, interview definitions are JavaScript files; for Silverlight interviews, interview definitions are compiled DLLs. HotDocs generates these interview definitions, but a host application must deliver them from the host application's own domain name. At runtime HotDocs appends the file name and type of the requested interview definition to the supplied string and issues an HTTP GET to the resulting URL. Note that for HotDocs 10.x interviews, this URL was only used to deliver Silverlight interview definitions.
DocPreviewUrlIf this URL is null or empty, users will not be able to request document previews from within browser interviews. Otherwise this URL should be the location of a handler from which a browser interview can request a document preview.
SaveAnswersPageUrlThe URL of a page within your host application that allows saving answers during an interview. If this URL is null or empty, HotDocs will not show a Save Answers button on the interview toolbar. Otherwise the browser will POST interview answers to this page in response to the user clicking the Save Answers button. The page should return an HTML response that will be displayed within an IFRAME in the interview.
FormActionUrlThe URL to which interview answers are posted when the user clicks the Finish button at the end of an interview. This is sometimes referred to as the "Disposition Page"; it typically proceeds to perform a document assembly based on those answers and may give the user options to decide whether to return to the interview, proceed to another interview, or go do something else.
TempInterviewUrlThe base URL from which the browser interview can request graphics or other peripheral files necessary for an interview in progress. For example, when an interview is displayed that uses Image dialog elements, your host application must know about those image files, and be able to deliver them in response to requests to this URL. The interview will append the name of the image file it needs to the end of this URL when it makes the request.
RequestTimeout(number of seconds) By default, HotDocs Core Services will assume a request to produce an interview has hung if the response takes longer than (a certain time). Setting RequestTimeout to another value can raise or lower the threshhold before HotDocs gives up on a request.
AddHdMainDiv"true" or "false"
In order to embed HotDocs interviews within a host application web page, HotDocs looks for a DIV with the id of "hdMain" somewhere on the page, and uses that location to embed the interview.
This setting indicates whether or not HotDocs should include the HDMain DIV element on its own (appended to the HTML content returned from GetInterview), or whether your host application has already placed a DIV with the appropiate ID for HotDocs to use.
TemplateTitleOverrideBy default, HotDocs interviews show a template's title in the interview toolbar. Use this setting to override the text shown in the toolbar.
InterviewLocaleHotDocs interviews are assumed to use the English (US) language by default. If you wish to display interviews in other languages, you should set this property to the name of an appropriately configured HotDocs Browser Language Module. See (link) for more information on Browser Language Modules.
OutlineInOrder"true" or "false"
Corresponds to the "Next Dialog Follows Outline" entry on the "Navigate" menu within desktop HotDocs. When this setting is "true" (the default), dialogs are navigated in a top-down manner, with the Next command always navigating the interview outline from top to bottom. When this setting is "false", behavior of the Next command depends on the current location: choosing Next from a top-level dialog always proceeds to the next top-level dialog (skipping child dialogs, if any), and choosing Next from a child dialog always navigates back to its parent.
ShowAllResourceButtons"true" or "false"
HotDocs interviews display a resource button next to input fields for which the template author has provided additional resource information. This setting determines whether resource buttons will be visible simultaneously for all such input fields, or whether resource buttons should appear only for the current-focused input field. Corrresponds to the HotDocs Options > Interviews and Dialogs > Show answer field resource button option in desktop HotDocs.
DisableAnswerSummary"true" or "false"
HotDocs interviews allow users to request answer summaries (from the interview toolbar) by default. This option can remove the answer summary toolbar button.
AsMaximumMultipleChoiceNo longer supported. This setting was used to set the maximum number of selected multiple choice options that could be displayed in an answer summary. HotDocs now shows ALL selected multiple choice options in answer summaries.
AsNumberOfColumns"1" or "2"
Answer summaries can be formatted in 1-column or 2-column format.
AsIndentPrompts"true" or "false"
Indents the left margin of each prompt with respect to dialog titles. Applicable only to 1-column answer summary layout.
AsBulletPrompts"true" or "false"
Precedes each prompt with a bullet character. Applicable only to 1-column answer summary layout.
AsIndentAnswers"true" or "false"
Indents the left margin of each answer with respect to its prompt. Applicable only to 1-column answer summary layout.
AsBulletAnswers"true" or "false"
Precedes each answer with a bullet character. Applicable only to 1-column answer summary layout.
AsBorders"N", "P" or "S"
Sets the border style for the answer summary table: [N]one, [P]lain or [S]culpted. Applicable only to 2-column answer summary layout.
AsPercentOfWidthForPromptRecommended range of "30" to "70"
Specifies the percentage of the total interview width reserved for prompts.
UnansweredFormat"Nothing" / "Underscores" / "Asterisks" / "[Variable]" / "*** Variable ***"
Dictates what to merge (by default) when a value for which no answer is available is merged into text within the interview. Corresponds to the "Unanswered variable placeholder" HotDocs setting
HonorCmpUnansFormat"true" or "false"
Determines whether template author preferences (as specified in a HotDocs component file) should override the default UnansweredFormat specified by the host application. ("true" corresponds to the behavior of desktop HotDocs.)
DefaultDateFormat"June 3, 1990", etc.
Specifies the default format example to be used when merging date values into text.
MaxRepeatCounte.g. "100"
The number of iterations through a WHILE loop HotDocs will perform before generating an error. For performance reasons, HotDocs Core Services may ignore values over a certain threshhold.
MaxRecursionDepthe.g. "100"
The maximum depth that may be reached by a recursive script in HotDocs before generating an error. For performance reasons, HotDocs Core Services may ignore values over a certain threshhold.

When you do not explicitly provide values for any setting, the default values specified in the HotDocs Core Services Administrative Portal will be used.

TODO: document the %%VERSION% macro for the URL settings

TODO: document which URL settings above will be called with specific parameters on the query string.

Public propertyShowAllResourceButtons
HotDocs interviews display a resource button next to input fields for which the template author has provided additional resource information. This setting determines whether resource buttons will be visible simultaneously for all such input fields, or whether resource buttons should appear only for the current-focused input field. By default it honors the behavior configured on the server.
Public propertyStyleSheetUrl
The base Url from which interview style sheets and graphics will be requested by the web browser.

A value for this property is required by the SDK.

Public propertyThemeName
The base file name of requested style sheet and sprite image; defaults to "hdsuser"
Public propertyTitle
The title to be displayed at the left side of the browser interview's title/toolbar. If this property is null, HotDocs will use the built-in title of the template.
Back to Top
See Also