NeedHelp Posted December 1, 2016 Report Share Posted December 1, 2016 I want to create a submission form that does not allow someone to fill out the form if today's date is more than 30 days before a certain date (field = Event Date)....and a message pops up that says "It's too early to submit your request". Is there a way to test for this? Quote Link to comment Share on other sites More sharing options...
MayMusic Posted December 6, 2016 Report Share Posted December 6, 2016 You add the code below to the Footer of your submission page <script> document.getElementById("Submit").onmouseover = function (){ alert('[@cbTimestamp*]' ); alert('[@date]'); if ('[@cbTimestamp*]' > '[@date]'){ alert('Too early to submit your request'); return false; } } </script> This is a submission page which is receiving "date" as parameter from previous page which is Event Date. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.