Automatic display dates?

shannon 12 Jul, 2008
Is is possible to set the forms to show for a certain period automatically like Joomla pages in general? I have many application forms on my site, all with different dates they would need to stop showing.
GreyHead 12 Jul, 2008
Hi shannon,

ChronoForms doesn't directly support the Joomla Published date features but you can get the same result in a couple of ways. Simplest is to to use the ChronoForms Plugin/mambot to embed the form in a content page and then set the Publish dates for that. The main drawback to this is that the Anti-Spam imageverification doesn't work 100% correctly if a user enters a wrong code.

Otherwise you can simply add a little PHP snippet to only show the page if certain criteria are met. I think I posted an example here a while back of a form that was only available during working hours. It woudl look something like this:
<?php
if ( some condition is true ) {
  // redirect to another page or show an error message
} else {
  // show the form
}
?>
Bob
This topic is locked and no more replies can be posted.