From: Matthew G. <mat...@gm...> - 2008-01-16 00:04:39
|
Sounds great to me. On Tue, 2008-01-15 at 17:22 -0500, Bishop Bettini wrote: > All, > > I have a client need to constrain a survey's availability to a given > window of time. In other words, survey 1 is available between dates X > and Y only: not before X and not after Y. > > I propose to add an optional opening_date and closing_date column to > survey, as well as input elements on the General tab of the survey > create/edit page. The survey logic would alter, as follows: > > A survey is available if and only if: > a) the existing access control logic is satisfied, and > b) one of the following conditions: > If opening and closing are set && opening <= now <= closing > If opening set and closing is not set && opening <= now > If opening not set and closing is set && now <= closing > If opening not set and closing not set > > I would also add a data element to the tables on the dashboard, so a > respondent can see the temporal availability. I'd also need to update > the error messages appropriately. And the help documentation. > > With this addition, no existing data will be affected. Those who wish > to constrain to a given date range may. > > Thoughts? > > bishop > |