- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Just to further elaborate here is the error message when the form is opened and when a date is entered in the StartDate field on the first page,

Here is script on the Day2 field as well as the rest of the Day fields throughout the form which seems to be causing the error. The + 1 changes to calculate the correct date from the StartDate.
form1.#subform[1].Day2::calculate - (FormCalc, client)
if (StartDate.rawValue==null) then
$.rawValue = ""
else
Num2Date(Date2Num(StartDate.formattedValue, DateFmt(4)) + 1, DateFmt(4))
endif
form1.#subform[1].Day2::validate - (JavaScript, client)
Holiday2.rawValue = MyScriptObject.check_holiday(this.formattedValue)
Thanks again.
Views
Replies
0 Likes
Total Likes