Tech Tip: Specifying Form Events
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: April 7, 2025
Form events are a useful feature that allows code to be executed based on a specific event. By default, newly created forms and form objects have some default events enabled. It is typically recommended that any events not being used be disabled. This can reduce unintended triggers and make following the logic of the code easier.
For example, if a form method only requires the On Load event to initialize things, there is no need for any of the other events to be enabled. When debugging, if other events are enabled, checking the values of Form event code/Form event can return other events that are not relevant to the debugging process.