getSurveyStatus

Function

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

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

Parameters

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

Date object

Returns

Property Type Notes

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