Coding Help Needed!!!!

S

smonczka

Using InfoPath 2003 I am trying to create a repeating list where the
default value for the first column is a date. As the user adds an
items to the list, i need to add one to the preceding date.

For example the first line might be…
7/1/2008, Item01

Any additional lines would look like this…
7/2/2008, Item02
7/3/2008, Item03
7/4/2008, Item04

I am limited to using InfoPath 2003 so cannot use 2007’s date
calculations. Can someone suggest another way to accomplish this. Is
there a way of using jscript or VB to do this in InfoPath.

I did locate the following jscript on the but it is unrelated to
InfoPath and I have understanding of how to go about including it
forms list.

//create the date
var myDate = new Date();

//add a day to the date
myDate.setDate(myDate.getDate() + 1);

I would really appreciate it if anyone could point me in the right
direction of how to create a function that would call this code or of
another way of another way to do this.

Thanks for your time,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top