Encompass Input Form Builder provides developers with a comprehensive suite of customizable event handlers, delivering tighter control over form behavior. This blog will explain the functionality of various custom event handlers, showcasing how they facilitate tailored user experiences and refined data management processes.
What Are Custom Event Handlers?
- Custom event handlers allow you to execute custom code in response to user interactions with your Encompass forms.
- These interactions, often referred to as “events,” can include actions like clicking a button or modifying the contents of a text box.
- By adding own own code to these events, we can extend the functionality of your forms beyond the default behavior, making them more dynamic and user-friendly.
Click Event: Enhancing User Interaction
- The Click event, applicable to buttons, check boxes, hyperlinks, and more, enables versatile control.
- Web integration is seamless, allowing developers to execute actions such as opening web pages with parameterized URLs.
- Logic implementation upon a user’s click ensures a seamless and responsive user experience.
Change Event: Real-time Validation and Feedback
- The Change event, triggered on data modification within controls like text boxes, allows for dynamic responses.
- Users receive immediate feedback, with the ability to display messages or validations based on their input changes.
- Threshold checks, such as displaying a message if a loan amount exceeds a predefined limit, can be implemented effortlessly.
DataBind Event: Tailoring Data Display
- The DataBind event is triggered when Encompass populates a form control with loan data.
- This event allows for the customization of how data is displayed, providing user-friendly representations.
- Developers can implement translation logic, converting underlying field values into more intuitive and understandable formats.
DataCommit Event: Customizing Data Saving Process
- The DataCommit event is triggered before saving modified data into the loan file, allowing for data modification handling.
- It offers flexibility, enabling developers to customize how data is saved and adding additional processing before committing.
- User input handling becomes more versatile; for instance, saving a derived value from user input instead of the directly typed value.
FocusIn Event: Interactive Focus Control
- The FocusIn event occurs when a control gains user input focus, making it useful for triggering interactive actions.
- Developers can implement actions triggered by focus, such as displaying selection dialogs or additional information.
- Enhanced user interaction is achieved, ensuring a more dynamic and engaging user experience.
FocusOut Event: Constraint Enforcement on Field Exit
- The FocusOut event is triggered when the input focus leaves a field, making it effective for enforcing constraints.
- Constraints can include limiting the number of characters, validating input, or performing specific actions on exit.
- Users receive guidance; for instance, setting maximum character limits for text boxes to enhance data integrity.
Format Event: Live Formatting for User-Friendly Input
- The Format event provides live formatting as users type into a text control, ensuring user-friendly input.
- Automatic adjustments, such as inserting dashes in a zip code field for better readability, can be seamlessly implemented.
- Data cleansing is performed in real-time, removing non-numeric characters for cleaner and more accurate data.
Load Event: Ready for User Input
- The Load event is triggered when all controls on the form are populated, signifying form readiness.
- Dynamic display adjustments can be made, showing or hiding controls based on loan data for an optimized user interface.
- Conditional actions, such as displaying specific panels based on loan amounts, ensure a user-friendly and contextual form.
Unload Event: Actions Before Form Closure
- The Unload event is raised just before the form is closed, providing a notification of form closure.
- Data copy operations can be performed, allowing actions such as copying values from one set of fields to another.
- Ensuring a graceful unloading process, developers can implement actions like copying values to custom fields before unloading the form.
Looking for more information on different custom event handlers in Encompass 360 or need help with implementing any technology solution within Encompass, leave us a message.


