I am wondering if it is possible to compare the date a form is submitted to a set deadline date. The idea is that when a visitor clicks submit it compares the date of submission to the deadline date.
For example I have a form for a scholarship application. The deadline for the submission is April 11th. I would like it that when the visitor clicks submit if the date is April 12th or later a message pops up informing them that the online submission deadline has passed. Or another option would be to hide the submit button after April 11th and display a message instead.
Is this possible. If so, how would I do it?
For example I have a form for a scholarship application. The deadline for the submission is April 11th. I would like it that when the visitor clicks submit if the date is April 12th or later a message pops up informing them that the online submission deadline has passed. Or another option would be to hide the submit button after April 11th and display a message instead.
Is this possible. If so, how would I do it?
Hello cmwincom,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I format a date in the datepicker?
How can I set a default date for a datepicker?
How can I set start and end dates for a datepicker?
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I format a date in the datepicker?
How can I set a default date for a datepicker?
How can I set start and end dates for a datepicker?
P.S: I'm just an automated service😉
Hi cmwincom,
For CFv4 you can use my Watchman [GH] action that lets you set 'publish' and 'unpublish' dates for a form.
Bob
PS The action should be OK on Joomla! 2.5 but might need updating for Joomla! 3. Please let me know if you have any problems.
For CFv4 you can use my Watchman [GH] action that lets you set 'publish' and 'unpublish' dates for a form.
Bob
PS The action should be OK on Joomla! 2.5 but might need updating for Joomla! 3. Please let me know if you have any problems.
Hello GreyHead,
I have installed your custom action. The question now is where do I use it? Do I put it in the On Load or the On Submit section under events?
I have installed your custom action. The question now is where do I use it? Do I put it in the On Load or the On Submit section under events?
Hi cmwincom,
At the beginning of the form On Load event is the usual place.
Bob
At the beginning of the form On Load event is the usual place.
Bob
GreyHead,
That is what I thought and what I did. I've set the open date as 2014-03-21 and the close date as 2014-04-21. However, when I browse to the page with the form, the form displays. Any suggestions?
That is what I thought and what I did. I've set the open date as 2014-03-21 and the close date as 2014-04-21. However, when I browse to the page with the form, the form displays. Any suggestions?
Hi cmwincom,
Do you have an Event Loop action in the pink On Fail event of the Watchman action?
Bob
Do you have an Event Loop action in the pink On Fail event of the Watchman action?
Bob
No I don't. How should I do that.
I've attached a screen capture of my on load section.
[attachment=0]chrono.png[/attachment]
I've attached a screen capture of my on load section.
[attachment=0]chrono.png[/attachment]
This topic is locked and no more replies can be posted.