HomeGuidesRecipesAPI
HomeGuidesAPILog In

Answer and Answer File

The Answer Question gets automatically added to almost every Question that is inserted into a project. While referred to as a question the answer block is unique in that it is used exclusively as outputs for other questions which is the recorded question output and enables transfer of information to other Questions.

General Properties

Each answer can have slightly different properties and features available to it depending on the parent question. Each question page has an answer section that covers the available properties and features for that question.

Propertydescription
NameThe name of the question in the pages tree
FormatThe format of the output data, with format options from percentage, number, force lowercase string, time, etc. can also be entered, instead of selecting one of the listed formats.

Answer File

The answer file contains all the responses from the answers, which can be saved and reused. A new copy of the same project can be populated with the answers from the saved answer file. Answer files saved at the Finish Pageare kept permanently but can be deleted by the user or from the API.

By default the answer file does not store information that it thinks it can recalculate or that cannot be changed during the current workflow state.

Properties

Answers that have data which can be saved to an answer file will have the answer file properties.

propertydescription
save typeNone means the answer wont be saved to the answer file, built-in answer ID is the same as the reference tag??, or a custom label defined below.
ignore defaultStops the saving of the answers default value. Disabling this disables recalculate of answer defaults and saves the defaults to the answer file.

Passing Data on the URL Query String

Web forms in Produce can be pre-populated with data (from previous saved answer files) by calling a web service to create an XML Answer File. However, for simple integration, or where only a small amount of data needs to be passed to the form, it may be appropriate to pass data on the query string, avoiding the need to create Answer Files or use the web services. Any parameter name on the query string that matches an answer label in the question set will pre-populate that answer.

πŸ“˜

It is possible to automatically look up further data or records based on a parameter such as a customerID or recordNumber within the web form.

πŸ“˜

Available in browser interface Produce only.

When passing data on the query string an end user must already have an active session or the authentication method must be capable of creating one automatically. Without an active session, the user will be redirected to the login page. Valid methods of creating an active session are as follows:

  • Managing authentication via windows authentication where sessions are automatically created upon accessing the Intelledox site based on your windows user account.

  • Allowing guest access to Producer where sessions are created automatically under a single account. This is most common for public-facing forms.

  • Calling the login method of the Intelledox Platform web service to create a session, and then append the returned SessionId to the query string along with any other data. This scenario is most commonly used with forms-based authentication.

    Project Configuration and Query String Structure

Any question that needs to be answered via the query string should contain an answer label.

In the example below the first Label question is populated via the query string and is used by the second data source question that subsequently populates the Client Full Name user prompt.

Once you save your project, the answer label can be used as part of the query string in the URL, for example:

/produce/launch.aspx?id={form id}&name=Your Name

This can be repeated to include additional answer label questions in the query string for pre-population.

The following table outlines the optional parameters that can be appended to the URL as well.

ParameterDescription
SessionID=A GUID representing the current session if it has been created by a web service call
Portal=1Portal mode, no top bar or ability to save an answer file.
PortalSave=1As per portal above but the save button is enabled.
WizardMode=1Regular Producer interface without the home button.