migrateFormPropertiesSettings

Function

Method used when fetching Feedback/Survey models in Hub; properties.settings.resultsAvailability is used in Hub to determine when it should render links to survey results

Adds form item.properties hash if it is missing Adds item.properties.settings hash if it is missing Adds item.properties.settings.resultsAvailability property if missing

Parameters

Parameter Type Default Notes
models Required IGetSurveyModelsResponse

Returns

Property Type Notes
featureService IModel
fieldworker IModel
form IModel
stakeholder IModel

Function defined in surveys/src/utils/results-availability/migrate-form-properties-settings.ts:18