Date picker question

K

kb at donovanhill

Using InfoPath 2007, I have a timesheet form with a date picker box, the
week ending is always friday. Is there anyway to ensure that the user can
only pick a friday date? or the form warns the user if the date they selected
is not a friday?

Thanks, kevin.
 
S

Sundar Narasiman

Kalyan,

The link you had mentioned is more towards conditional formatting. But the
person is asking
more towards client-side validation kind of things. It would be better if he
uses VSTO (Visual Studio Tools for Office)
to accomplish this task.

What do you say ??
 
K

kb at donovanhill

Thanks for your comment, I was hoping that a validation rule could help
rather than .net event to check if the date entered is a friday. Any ideas?

Thanks
 
S

Sundar Narasiman

I don't think you can achieve this with a validation rule. You need to use
C#/vb code
to handle the event and perform the necessary processing
 
S

S.Y.M. Wong-A-Ton

No, it's not supposed to be, but it seems to be off by 2. Thanks for alerting
me to this bug. I'll take a closer look at it when I get a chance. In the
meantime, I've removed the article until further notice, and as mentioned
previously by another poster, this functionality can be achieved through the
use of code.
 
S

S.Y.M. Wong-A-Ton

The article is back online. I modified the formula and the numbers. It should
work fine now in 2007, 2008, and all other years. If you find any more bugs,
let me know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top