To be brutally honest when I say java I dont know whether I mean java or javascript! I have no programming training and am simply muddling along by sheer force of will and trial and error most of the time, with lots of questions being asked on forums when I get stuck!
webform-client-form-submitted is a form field:
http://www.zpyder.co.uk/tess/survey/node/2A snippet of the form source: