You are viewing limited content. For full access, please sign in.

Question

Question

Forms "date range"

asked on May 14, 2015 Show version history

Is there a way to only accept dates within a range?  Say for example, we want the respondent to match the range of 7/1/2013 to 5/30/2014?  

We would rather not use workflow, since that would be an "after the fact" type of process.  

0 0

Answer

SELECTED ANSWER
replied on May 14, 2015 Show version history

Here's an example in which the date field is using the CSS class called fixedrange

$(document).ready(function () {
  var minDate = ("2013-07-01");
  var maxDate = ("2014-05-30");
  $('.fixedrange input').attr('min',minDate);
  $('.fixedrange input').attr('max',maxDate);
});
3 0

Replies

replied on May 19, 2015

Thanks Alex! yes

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.