1 Reply Latest reply: Oct 14, 2011 2:47 AM by Dan Bracuk RSS

    Data checking in same page

    Phinehas1234 Community Member

      Hi,

       

           Currently, I want to implement a date checking in our form. However, since we have many holiday every year, it is not possible for us to hard-code the date and check the valid date using javascript.

       

           Now, I have an idea on implementing it but I'm not sure ColdFusion can do it or not. It is, all holiday will be inputted in database. Then, when user clicks form submit button, it connects to database and checks the date. If it is holiday, it holds the form in the same page and shows error message to promopt user to input valid date. If it is not holiday (valid date), it goes ahead to do other operation.

       

           But, can ColdFusion can do somethings like, check data (from database and inputted form) in the current page? Or, I have to use JavaScript to do the checking? And if I have to use JavaScript, can JavaScript load database data for the checking?