This topic is locked

How to add a custom field to the form

11/18/2010 11:03:13 PM
ASPRunnerPro Tips and tricks
admin
  1. 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.