×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

require date to be two weeks in advance

require date to be two weeks in advance

require date to be two weeks in advance

(OP)
I need to create a form that when the user selects the date required field it will only allow them to choose a date at least two weeks in the future....thanks

RE: require date to be two weeks in advance

I think you need to set up a Java Script validation in the field properties.

Can't help you with that but I guess that someone will be able to in one of the Java forums on TT

RE: require date to be two weeks in advance

(OP)
thanks for you responce I was able to figure it out. I created a date field and and put the following script in the custom calculation script box

var d1 = new Date();
var num = d1.valueOf();
num += 1000 * 60 * 60 * 24 * 14;
var d2 = new Date(num);
event.value =util.printd("mm/dd/yyyy", d2);

worked like a charm it can be modified to calculate out any number of days just by changing the last value in the num line to the number of days you want.....

RE: require date to be two weeks in advance

Rubberhead10

I am very new to Adobe and know absolutely nothing about scripts. Any idea for a script that would limit a time frame in a cell? i.e.  The date entered in the frame must be within the past 3 months.

RE: require date to be two weeks in advance

(OP)
ok I am sure you can do it with a script but I would not be you man.....I am really bad at scripting. I can take a script and be able to follow it and make some adjustments but from scratch I SUCK........I would probably start a new post at this site. there are some really good people here and they have helped me many times......wish I could help you......sorry

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close