Page 1 of 1

Warning if past or future date is entered?

PostPosted: Tue Jul 27, 2010 6:06 pm
by Detox
Hello Folks,

I am still using servoy v 3.12 and have a question regarding date entry on a form. I would like to have a large warning pop up on several forms that staff enter the date submitted on if it does not match "today". This would be a visual warning that the entry is being pre / post-dated.

Can anyone point me to the direction I need to take?

Thanks

Re: Warning if past or future date is entered?

PostPosted: Tue Jul 27, 2010 7:03 pm
by ptalbot
Hi Detox,

that's a weird requirements you have here! If users are not supposed to enter anything else than today, why don't you auto-enter the date, or if it can be null, why don't you set a simple text field to enabled=false and add a button which, when clicked, will enter a new Date()?

Otherwise if what you are looking for is an alert box, you might want to have a look at the dialog plugin, or if you want this to be web compatible use a FID with application.showFormInDialog().