getSurveyStatus

Function

Parses survey form item and form.json to determine if survey is draft, scheduled, open, or closed

  • getSurveyStatus(__namedParameters: {
    settings:
    {
    openStatusInfo:
    {
    _status:
    "scheduled" | "open" | "closed"
    schedule:
    ISurveySchedule
    }
    }
    }, now: Date) : ISurveyStatus

Parameters

Parameter Type Default Notes
__namedParameters Required {
settings:
{
openStatusInfo:
{
_status:
"scheduled" | "open" | "closed"
schedule:
ISurveySchedule
}
}
}
now Optional Date

Date object

Returns

Property Type Notes

Function defined in surveys/src/utils/status-utils.ts:31