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

Question

Question

Form that works only on specific day

asked on January 31, 2017

We already have some forms ready and running, but now we would like to make work one of those only on specific day (fridays).

 

How can we be able to do so? 

0 0

Replies

replied on February 1, 2017

Guillermo,

This may be a bit of a hack, but it seems to work for me.  I am using the DateFormat.JS file found HERE but there are other Date Format js files available.  I used this to load the DAY when the form loads into a field called dateTime.  Then you can use Field Rules to determine what fields to show when your Date field = Friday.  

Here is the code:

$(document).ready(function () {
  $.getScript('https://yourformsserverhere/Forms/js/DateFormat.js', function () 
		{ 
      var now = new Date();
      var loadDate = dateFormat(now, "dddd");
      $('.dateTime input').val(loadDate);
  		});
});

Here is the Output:

Hope that helps!

-Nate

1 0
replied on February 2, 2017

Thanks a lot, we will try to implement it.

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

Sign in to reply to this post.