Loading...
 

Appearance

Add custom field to form

To add custom field to the form follow the instructions below.
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.

HTML
<INPUT id=test type=text>

2. Add the following code to Javascript OnLoad event of the page where custom field was added:

JavaScript
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 $_REQUEST["test"] to access the custom field value.

How to dynamically control whether to display the master table at the top of a list

How to go back from add/edit to the same place in a big list

How to tell what search/filter is in effect

How to dynamically turn on/off edit/add/delete buttons based on record state

How to dynamically apply colours or emphasis to fields

How to auto-tab

How to set focus

How to dynamically make fields read-only or hide them