• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: publish rsforms on limited date

publish rsforms on limited date 8 years 3 months ago #36580

  • jheroen
  • jheroen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
Hi all,

is it possible to have rs forms setup that people can use the form until a set date and after that date people get a custom message that they can not use the form anymore?
The administrator has disabled public write access.

publish rsforms on limited date 6 years 1 week ago #39186

Hi !
I'm make this post up.

I'm interesting into this feature too. Is there a way to allow a form until a date ?

Regards

Nicolas
The administrator has disabled public write access.

publish rsforms on limited date 5 years 5 months ago #39732

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
Hello,

Although there is no default functionality regarding this matter, due to the flexible nature of the component, you can achieve this by adding a script as the following within "Scripts called on form display" section:

$date1 = '2020-01-11';
$currentDate = date('Y-m-d');

$firstDate = strtotime($date1);
$secondDate = strtotime($currentDate);

if($firstDate > $secondDate){
$formLayout = 'Sorry, no more submissions are accepted.';
}

You will have to replace the value of "$date1" variable with your desired date.
My help is not official customer support. To receive assistance, submit a ticket by clicking here
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!