Do you find this script useful?
Yes
No
Comments?
This script is used in an edit screen to make one field required if another field in the form contains data. This will only work for new records.
Script Language: JavaScript For use with:
DB/TextWorks
// where field2 is the field that is required if field1
// contains data.

function onRecordSave()
{
if(Form.boxes("field1").content != "" && Form.boxes("field2").content == "")
   Form.boxes("field2").setFocus();
   Application.message("You must enter data in field2");
}
Notes: on 9/16/2002

Powered by DB/Text WebPublisher, from Inmagic WebPublisher PRO