Limiting time allowed between 2 date fields

Wayne Richmond
Tera Guru

Hi guys. I have two date fields on a Service Catolog request. I want to limit the time between the two fields to 30 days. Here's the real world description:

We loan out equipment for a maximum of 30 days. The form I have created has a start and end date (variable fields). However, people can enter whatever dates they wish. I'd like to limit this to X number of days. Is this simple?

Thank you

6 REPLIES 6

EIGHT YEARS LATER ... and this is still gold.  THANK YOU JOHN!  Cheers!

Wayne Richmond
Tera Guru

Thank you very much for your replies guys, especially you John. I'll try that script later today. I appreciated you taking the time to do that.