• 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: Minimum Date Today + 24 hours

Minimum Date Today + 24 hours 12 years 1 month ago #22427

  • peter52
  • peter52's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 3
Hi!

I need some help of an experienced RS Form pro user.

I need to set a date 24 hours in advamce as a minimum.

I started with a code suggested in another post but no effect at all.

This is the suggested code:

In order to achieve this please try setting the minimum date of your calendar field to "01/18/2011" and the "Date format" to "dd.mm.yyyy". After you have done this please go to the "Scripts" tab and add the following script in the "Scripts called on form display" field:

$Sdate = time() + (24 * 60 * 60);
// 24 hours; 60 mins; 60secs
$tmp = date('m/d/Y',$Sdate);
$formLayout = str_replace("{'mindate': '01/18/2011'}", "{'mindate': '".$tmp."'}", $formLayout);

There is no effect even when I write tomorrows date (04/06/2013) in the mindate field
I need this badly urhent for a client - so I kindly ask for Your quick help.
My date format is set to dd.mm.yyyy

Then I read the it is now possible to write "return date('m/d/Y');" into the nindate field to set the minimum date fort today - but nothing.

Hopefully someone can help
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!