Expand my Community achievements bar.

FormCalc - date/time field exit event doesn't trigger

Avatar

Former Community Member
Hi!

I'm having problem with date/time field. I'm trying to check if

provided end date is later then start date. So I'm using exit event

with short script inside:



----- form1.#subform[0].dateEnd::exit - (FormCalc, client)

------------------------------------------

if (dateStart > dateEnd) then

dateEnd = dateStart

$host.messageBox(errorText)

endif



Everything works fine when document is open in Adobe Acrobat

Professional. But in Adobe Acrobat Reader 7.0.5 event doesn't trigger.



My first thought was that I have some mistakes in script. But I checked

it by simplifying the script. On exit I was setting current date to

date/time field. And nothing happened. I also changed event to

mouseExit, script started to work. But mouseExit is not that behaviour

I want to use.



Is this some well know issue? And is there any way to omit this

problem?



PS. I'm also using exit event on numeric field and everything works fine.
0 Replies