WEB onSubmit Event + Agent

Hi,

I have 3 functions in 3 different events of a form. Now, I am calling them in the onSubmit event of the form. The code is as follows:

if(checkForm()) {

if (validations()){

		updateOrderField() ;

		return true;

}else{

return false;

	}

}else

{

return false; }

The WebQuerySave event of the form calls an agent. The problem I am facing is that the form is not getting submitted. But when I am calling only one function, lets say checkform() in the onsubmit event, its generating an error after submitting. The error is: “HTTP Web Server: Lotus Notes Exception - Error validating user’s agent execution access.”

Can any one help me?

Subject: WEB onSubmit Event + Agent

Check the runtime security level (must set to ‘2.Allow restricted operations’) in the agent security tab

Subject: RE: WEB onSubmit Event + Agent

Thats checked.

Subject: RE: WEB onSubmit Event + Agent

the designer user (the last one who saved agents) have the right permissions on server configuration security tab (run unrestricted agents)?