Expand my Community achievements bar.

Day of the Week calculation

Avatar

Level 2

I have a form that has a date field (DateTimeField1) that I want to make a series of 7 checkboxes (named Sun, Mon, Tu, Wed, Thu, Fri, Sat) dependent on. The checkboxes are on top of a series of letters representing the days of the week (ie: S M T W T F S). What I'd like to do is take the user selected date in DateTimeField1 and have the appropriate checkbox display an 'X' to indicate the day of the week. I have searched the forums and cannot find a solution or even a starting point. I am not a programmer, but do have limited knowledge to that end. Any help would be appreciated

4 Replies

Avatar

Level 10

Check this sample.. This might give you some idea on how to do this.

https://acrobat.com/#d=AgrBr2L4CkTPAMlR07kNLQ

Let me know if you need more help.

Thanks

Srini

Avatar

Level 10

Hi,

this is not so difficult to realize with FormCalc.

All you need is a date field and 7 check boxes with the same name such as "chkBox".

In the exit:Event of the date field add this script.

Avatar

Level 2

Thanks for the responses. Is there a way to get the date to display in mm dd, yyyy format (December 2, 2001) instead of the day of the week?

thanks again

Avatar

Level 2

Thanks a lot for your suggestion, it worked, one thing I had to change, though, was the date format to match what I have on the form. Once I changed that, it worked perfectly