Hello All,
For folks who have moved to 12.2 have you noticed any issues with page close handlers? I've been testing forms before we move over to 12.2 and some code I have in a page close handler has stopped working. I tried a new form with just a userok("Hello, World") to see if I would get a response. I did not. Has anyone else had this issue?
Thanks,
Brad
I just tried a simple page close handler in my 12.2 test VM and it worked. Can you post your code?
if (VSC_USER_ID=="") then
userok("Please fill in VSC Document Owner")
closepage("FALSE")
return(FALSE)
endif
I tried this:
{
if (document.txtbox == "") then
userok("The box is blank.")
CLOSEPAGE("TRUE")
else
userok("The box is NOT blank.")
CLOSEPAGE("TRUE")
endif
}
I also tried this without the if statement:
{
userok("Hi, I ran just fine.")
CLOSEPAGE("TRUE")
}
Neither produced the prompt.
I don't know if the return(FALSE) is required or not. Have you run a trace? Also, have you verified your VFE install (Tools, Options, Build tab) has "Include page close handlers" checked?
Hi David,
Thanks for walking me through this. I did run a trace and didn't see it run anything. I forgot about the setting in VFE. I needed to do a reinstall of VFE around the same time we moved to 12.2 and forgot to check the include pageclose handler box. I ended up thinking it was a 12.2 issue because of the proximity of the two installs. Thanks again.
Brad