Toggle menu

Event Handler Functions

Field handler functions are triggered when a field first loads, and each time its value changes.

The function's parameters are:

  1. helper - The form helper library
  2. fieldName - The name of the field
  3. value - The new value of the field
  4. valid - The field validated successfully (either true or false)
  5. eventName - The name of the event triggering the call, either CHANGE, PAGEINIT or NEWPAGEINIT

In these examples the handler on the first field combines its value with some text and updates the second field.

Share this page

Facebook icon Twitter icon email icon

Print

print icon