- Add a custom input field to your form
<INPUT id=test type=text>
Make sure you specify field ID.
2. Add the following code to 'Javascript OnLoad' event of the page where custom field was added
this.on('beforeSave', function(formObj, fieldControlsArr, pageObj){
var val = $("#test").val();
formObj.baseParams['test1'] = val;
});
3. In any event like BeforeRecordAdded or BeforeProcess use Request("test") to access custom field value.