1

I a using Cognito forms to have people register for an event which occurs every other Wednesday.

How can I get the calendar function to not allow registration for any other days of the week (Mon, Tues, Thurs, Fri, Sat, Sun)

And also only allow registration on every other wednesday?

Thank you

1 Answer 1

0

To see if it was Wednesday use the calculation

=(DateField.DayOfWeek = "Wednesday")

To only allow for every other week use

=(Math.Floor(DateField.DayOfYear/7)%2 = 1)

To only allow for every other Wednesday use

=(DateField.DayOfWeek = "Wednesday") and (Math.Floor(DateField.DayOfYear/7)%2 = 1)

If that is the wrong week, change the 1 to 0 and the end.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.