i have a pdf form i am doing. it has a java script to make the week ending date populate other fields and minus a day.
if (WEEK_ENDING.rawValue == null)
{$.rawValue = "";}
else
{Num2Date(Date2Num(WEEK_ENDING.formattedValue, DateFmt(1)) - 0, DateFmt(1));}
endif
this works for the first date, but when i change it to
if (WEEK_ENDING.rawValue == null)
{$.rawValue = "";}
else
{Num2Date(Date2Num(WEEK_ENDING.formattedValue, DateFmt(1)) - 1, DateFmt(1));}
endif
it does not work. any idea what i am doing wrong?
Tina
Hi Tina,
Well at first look, seems like you mixed FormCalc and JavaScript together...
Num2Date and Date2Num can only be used in FormCalc, and you can't use these { } in FormCalc
You should be using the if (), then, else, elseif, endif for FormCalc
the formula does not want to work without the {} it gives me a syntax error 3: at line 4
Views
Replies
Total Likes
Are you sure you are in FormCalc and not JavaScript?
Views
Replies
Total Likes
i am doing this in a Acrobat PDF form. when I asked on the forum there they told me i needed to ask on this forum. am am trying to use Java script in the form. should i still be on the Adobe forum?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies