Field Change Event
Field Change Event - app.record.create.change.(fieldcode)
An event triggered when a specified field value changes when creating a new record.
Function
Desktop
app.record.create.change.(fieldcode)
Mobile
mobile.app.record.create.change.(fieldcode)
Fields that can be Specified
- Radio button
- Drop-down
- Check box
- Multi-choice
- User selection
- Department selection
- Group selection
- Date
- Time
- Date and time
- Single-line text
- Number
- Table
Make sure to specify the field codes of these fields. Nothing will happen if the field code does not exist, or a field that is not in the above list is specified.
*The timing of the event for the Single-line text is as below:
- when the focus leaves the field.
- when the Lookup field mappings have been run.
- For PC, after calculations have been applied to a Single-line text field that has the Calculate automatically option turned on.
*The timing of the event for the Number is as below:
- when the focus leaves the field.
- when the Lookup field mappings have been run.
*The timing of the event for the Table is as below:
- when a new row is added to the table
- when a row is deleted from the table
Properties of the Event Object
PROPERTY | TYPE | DESCRIPTION |
---|---|---|
appId | Number | The App ID. |
record | Object | A record object including data inputted by the user at the time of the event.. |
changes | Object | An object including data of changed fields and rows. |
changes.field | Object | An object of the changed field. |
changes.row | Object | An object of the changed row.
|
type | String | The event type. |
Available Event Object Actions
- Enable/Disable field edits
- Show field errors
- Show record errors
- Run Lookup fields
- Clear copied Lookup field values
- Get the object of the edited field or table row
Notes
- When comma-separated values, whitespaces, or double-byte characters are sanitized, as long as the final value does not change, the event will not be triggered. For example, if the user enters a value of
1000
into a field, and then proceeds to manually change the value to1,000
,1000
, or1000
, the value will be sanitized back to1000
(the same number), and the field change event will not be triggered.
Limitations
- Events are not triggered if fields not listed in the fields that can be specified are specified.
- Although Lookup fields cannot be specified, their field mapping destinations can be.
- Values from the Attachment field cannot be retrieved.
- Refer to the Limitations section of the Event Handling page for more details.