|
To add custom field to the form follow the instructions
below.
Note: Change
the values listed in red to
match your specific needs.
1. Proceed to the Visual
Editor page, switch to HTML mode and add a custom input
field to your form. Make sure you specify field ID.
|
<INPUT id=test type=text>
|
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['test'] = val;
});
|
3. In any event like Before
record added or Before process
use postvalue("test")
to access the custom field value.
|