shouldDisplayResults

Function

check if Hub should link to results view of survey

  • shouldDisplayResults(formItem: IFormItem, stakeholderItem: IStakeholderItem | null, username: string, requestOptions: IRequestOptions) : Promise<boolean>

Parameters

Parameter Type Default Notes
formItem Required IFormItem

survey form item json

stakeholderItem Required IStakeholderItem | null

survey stakeholder view item json

username Required string

the username to check for survey responses

requestOptions Required IRequestOptions

The request options

Available requestOptions

Property Type Notes

Returns

Promise<boolean>

Function defined in packages/surveys/src/utils/results-availability/should-display-results.ts:14