What is the JavaScript API?
Using the JobRouter JavaScript API enables you to create dynamic dialogs. The JavaScript API has been developed as an easy way to write your own scripts without having to have extensive programming knowledge.
The API is an easy way to access dialog elements as well as reading and changing their values. There are also numerous functions for calculating dialog values or the validation of inputs.
By using these functions you save time by not having to reformat values. When accessing for example a date field, the date is always returned as JavaScript date object, regardless of the user settings and therefore allows it to be directly returned to the dialog field. JobRouter carries out the appropriate formatting.
Additionally, the API offers functions to execute simple operations such as comparing date values or calculating new date values.
Please note: JobRouter dialog elements and functions should only be accessed via JobRouter JavaScript API. Unlike the JobRouter JavaScript API functions, it cannot be guaranteed that the possibility of accessing elements directly to read or to manipulate them will exist in future JobRouter versions.