Hi,
I have a cform which has _javascript_ validation on some form fields (widgets):

<fd:_javascript_>
  if (case) {
    return true;
  } else {
    return false;
  }
</fd:_javascript_>

<fd:widgets>
</fd:widgets>

Basically what I want to happen is that when <form> is returned a value of 'true' to indicate that all form fields have been validated successfully a _javascript_ function is carried out, for example an alert is triggered alert("success").

I have edited both resources/forms-lib.js and resources/forms-field-styling.xsl and absolutely nothing is happening. Firstly how can I determine in _javascript_ whether true has been returned to the form after it has been submitted? I have tried a check on document.Form.submitted and had no joy with that. Any ideas?

regards

Andrew