Here is some working JavaScript code from one of my forms that you might be able to adapt to your problem:form1.#subform[0].TextFieldAge::calculate - (JavaScript, client)// Given a Date/Time Field ("DateTimeFieldDOB") and a Text Field ("TextFieldAge")// calculate TextFieldAge in years based on DateT...