Encompass LO Connect Updates and Enhancements to Encompass Web Input Form Builder - 21.4 Major Release
This section discusses the updates and enhancements to forms, features or settings in the Web Input Form Builder that are provided in this release.
Updates and Enhancements
A new DataBind event is now available in the Properties panel for the TextBox form control in the Web Input Form Builder. The DataBind event is fired any time LO Connect populates a text box using the data from the loan, a process called "data binding". You can use this new DataBind event to modify the default behavior of the data binding. For example, you can customize the way in which your form displays the values from the loan in the text box.
The DataBind event is currently available for the TextBox control only on custom input forms.
Here is an example of DataBind code you could add to a custom form.
The following code assumes that a text box is placed on the form and associated with Field 981 (line item M1 from the Declarations section on Page 3 of the 1003). The underlying field can take on one of the following values:
-
PrimaryResidence
-
SecondaryResidence
-
Investment
However, we want the text box to display "PR", "SH", or "IP" for these values. To achieve this, we override the DataBind events to translate between the underlying field value and the displayed value. Here is the code to add for the DataBind event to achieve this:
If EventArgs.Value = "PrimaryResidence" then
EventArgs.Value = "PR"
Else If EventArgs.Value = "SecondaryResidence" then
EventArgs.Value = "SH"
Else If EventArgs.Value = "Investment" then
EventArgs.Value = "IP"
Else
EventArgs.Value = ""
End If
NGENY-11613
When creating or updating a custom input form, you can now set up buttons and other controls with the openModal option to launch a modal window that contains a custom input form or a custom tool. When a form user clicks the button, a modal window opens the custom form or tool. Previously, the openModal () options could only be used to launch standard input forms or tools.
Similar to the open function, the openModal (<openOptions>) opens the specified location/resource in a modal window/dialog box. The openOptions are the same as those for the open function. Here is sample code for opening a customized version of the Borrower Information input form:
const appObj = await elli.script.getObject(‘application’);
const modalOptions = {
'type': 'form',
'size': 'md',
'name': 'Borrower Information',
'showFooter': true/false,
'formType': 'CUSTOM_FORM'
};
const modalResp = await appObj.openModal(modalOptions);
NGENY-27287
Next Section: Change Log | ||
Previous Section: Updates & Enhancements |