Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A Javascript JavaScript function can be used to perform custom formatting and validation of bound fields. This is done by selecting the 'Custom' field formatting type and providing the name of the desired Javascript JavaScript function, as shown here:

  Image RemovedImage Added

The function will be called both when the screen is displayed (to format data provided by the RPG program), and when a change is made to a field and the screen submitted (to validate user input and to revert data to program formatting). The function will receive a single argument, which is an object containing properties that provide information about the field, along with the field data. The parameter object includes the following properties:

...