Exists a function into a form?

Hi!.

How can I know if a function exits into a form.

Best regards. Roberto.

You can do that like this:

if (forms.myForm.myMethod) { //check if the method exists
	forms.myForm.myMethod(); //execute the method
}

Note that the parentheses () are missing in the first line.

Hi Joas.

Thanks a lot for your reply. It works perfectly.