Datapolis Process System
JavaScript Object Model
You can extend your Quick Form behavior with custom JavaScript code.
The object model was built with jQuery v 1.11.3.
The current form Java Script object representation is available in Datapolis.Forms.currentForm variable:
var form = Datapolis.Forms.currentForm;
Datapolis.Forms.currentForm is the instance of Datapolis.Forms.ActionForm.
Datapolis.Forms.ActionForm members:
To manipulate the form field use the Datapolis.Forms.currentForm.fields collection. Use the field identifier that has been chosen in action parameter setting window to get field object:
var field_category = Datapolis.Forms.currentForm.fields["category"];
Field object is the instance of Datapolis.Forms.ActionFormField.
Datapolis.Forms.ActionFormField members:
* - peoplePicker curettly do not support custom 'OnChanged' function.
event: the orginal event value: current field value cancel: set to true cancel the on chnage flow execution, field validation and refresh will be stopped };
customOnChange - your custom on change function reference, you can assigner the different function in run time, function format is function(field, args) where:
field - related Datapolis.Forms.ActionFormField
args = { sender: the jQuery reference to that dom element that trigger the event event: the orginal event value: current field value cancel: set to true cancel the on chnage flow execution, field validation and refresh will be stopped };
sender: the jQuery reference to that dom element that trigger the event event: the orginal event value: current field value cancel: set to true cancel the on chnage flow execution, field validation and refresh will be stopped };