You can do something like this....
// form1.page2.subform1.fullName::calculate - (JavaScript, client)
var surname = "";
var firstName = "";
var middleName = "";
if (!(form1.page1.subform1.surname.isNull)) {
surname = form1.page1.subform1.surname.rawValue + ", ";
}
if (!(form1.page1.subform1.firstName.isNull)) {
firstName = form1.page1.subform1.firstName.rawValue;
}
if (!(form1.page1.subform1.middleName.isNull)) {
middleName = form1.page1.subform1.middleName.rawValue;
}
this.rawValue = surname + firstName + " " + middleName;
Steve