Lotus Script to JavaScript

Hi,

I sorry to ask this question, but I am in need of a little assistance…

I have developed the following Lotus Script for a Query Save event on a form which does work really well, however I would really like it to work on the onBlur event of a field but I don’t know JavaScript…

Dim futuredate As NotesDateTime

Set futuredate = New NotesDateTime( “Today” )

Call futuredate.AdjustYear (2)

Msgbox futuredate.DateOnly

Msgbox source.FieldGetText(“CessationDate”)

If source.FieldGetText(“CessationDate”) > futuredate.DateOnly Then

Msgbox "Please check the date you have entered.  If correct please add a comment as to why?", 16, "Date Validation Error"

End If

Does anyone know if it is possible to produce the same code in JavaScript? And if so can you start me off?

Thanks in advance,

Darren

Subject: Why not use LotusScript with onBlur?

I’m not sure whether I fully understand what you are trying to do. Anyway, you can use LotusScript to script a field’s onBlur event.