- imaginetekAsked on April 05, 2012 at 01:05 PM
Hi, I have set up a form using the date/time function in one section to input an order date. I would like to know if there is a way to prevent a date being entered that is before the date of entry e.g. 4th March, when form filled in on 5th March?
- gori-mathewAnswered on April 05, 2012 at 04:07 PM
Thanks for this concern. unfortunately, to the best of my knowledge, what you want to do is not currently possible with our forms.
I though have some thread on an almost workaround solution and request you to have alook . http://www.jotform.com/answers/18819-Conditional-Forms-with-date-input
Please if you have any question lets know and will assist you.
- imaginetekAnswered on April 05, 2012 at 04:37 PM
Thanks for the reply. Unfortunately the link doesn't really help as I want the notification/rejection to come before submission.
I think it would be auseful feature to build into a future update, where the condition could be made to check for greater or less then a parameter which is set to be the current date.
- JotForm SupportjonathanAnswered on April 05, 2012 at 06:20 PM
Hope this helps you in anyway. Thanks.
- imaginetekAnswered on April 05, 2012 at 06:58 PM
- JotForm SupportjonathanAnswered on April 05, 2012 at 07:00 PM
Ok imaginetek. I will provide you direction and sample how to achieve it. Please give me time to prepare it for you.
- JotForm SupportjonathanAnswered on April 07, 2012 at 05:08 AM
In the demo, if you put date less than the current date(today), if you click on the next required field, a pop-up message will inform you of the order date being an invalid date. The function can be easily modified to prevent the user from continuing instead(i.e. hide next fields or submit button).
Hope this helps you in anyway. Thanks.
- imaginetekAnswered on April 08, 2012 at 12:32 PM
Wow, thanks for your help with my problem. I've put the code in and it works brilliantly. I really am grateful that you took the time to respond to this. I have already told a few people about it and told them to check out jotform. It's this kind of support which makes a difference and the whole project deserves every success.
The only issue I have is that if you look at the link where I have put the code: http://www.imaginetek.co.uk/T2G/order2.html I have lost the formatting. Do you need to provide me with some css code? Also I'm not sure where the ">>" symbols are coming from next to the category titles. Appreciate any further tips.
- JotForm SupportjonathanAnswered on April 08, 2012 at 03:35 PM
Thank you very much for considering JotForm and our service, and even the good feedback.
Anyway, I have seen your actual 'order html' page, I will copy that and apply the whole functions need so you can use them right away. I will provide you the steps later how to transfer it to your page.
Please wait a while. I'll be back in a sec.
- JotForm SupportjonathanAnswered on April 08, 2012 at 07:05 PM
Here is the revised html page. Please check if the functionality is enough with you.
To apply this on your website
1. Copy the source code of this web page and create your new html page where you can easily reference it. This is the JotForm source code of your clone Order form. See the screen below of the directory of my sample site. order2.html is the JotForm form.
2. In your own order.html , insert/paste the iframe source code similar to the highlighted code in the screen below. You can also get the code in the demo page (in your browser, righ-click and view source code, then copy that iframe codes so you can paste it in your order.html file)
Hope this work for you. Inform us should you require further assistance.
- imaginetekAnswered on April 09, 2012 at 10:40 AM
Your solution worked perfectly. The result is spot on.
Once again I must convey my thanks to you on this and the way you have given up your time to follow it through to a solution. You certainly have a convert here and I'll make sure as many people as possible know about JotForm.
Here's wishing you and the JF team growing success and recognition in the future.
- JotForm SupportjonathanAnswered on April 09, 2012 at 06:39 PM
We are glad that it worked out for you.
Thank you for taking the time updating us on the status and giving the good feedback and comment as well. Nothing much I really did, this is just the way we provides service here. =)
Having good customers like you with us, represents JotForm and our service as well.
Feel free to contact us anytime should the needs arises again for assistance.