SettingsQuestionsForm

SettingsQuestionsForm

SettingsQuestionsForm allows the user to specify where Job files will be uploaded. This is a highly customized descendant of the base Form and does not behave like most others because it requires questions to be logically grouped and repeated.

Constructor

new SettingsQuestionsForm(exportSettings)

Creates a new form to display export questions.

Parameters:
Name Type Description
exportSettings ExportSettings
Source:

Methods

addRow()

Adds one new question to the form. The question takes up one row in the display.

Source:

getFieldsList() → {Array.<string>}

Returns a list of field names to display in the form's "field" select list.

Source:

getNamesList() → {Array.<object>}

Returns a list of names to display in the objId form field. Each option value is a UUID. The text is a name.

Source:

getQuestionFromForm() → {ExportQuestion}

Returns the user's response to quesion in the specified row. Returns an object that includes prompt, objType, objId, field.

Source:

getQuestionPrompt() → {string}

Returns the user's response to quesion.prompt in the specified row.

Source:

getQuestionsAsArray()

Returns a list of questions as an array. Each question consists of four fields (prompt, objType, objId, and field). We need this to pass questions to the HTML templates that render them.

Source:

getSelectedField() → {string}

Returns the user's response to quesion.field in the specified row.

Source:

getSelectedId() → {string}

Returns the user's response to quesion.objId in the specified row.

Source:

getSelectedType() → {string}

Returns the user's response to quesion.objType in the specified row.

Source:

parseQuestionsForExport() → {Array.<ExportQuestion>}

Returns a list of ExportQuestions parsed from the HTML form.

Source: