getDetailedSurveyStatus

Function

Parses survey status and schedule to determine if survey is opening today,opening later, open indefinitely, closing today, closing later, already closed, or upcoming

Parameters

Parameter Type Default Notes
_status Required ISurveyStatus
schedule Required ISurveySchedule

Schedule hash from <form.json>.settings.openStatusInfo

now Optional Date new Date()

Date object

Returns

IDetailedSurveyStatus
Property Type Notes

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