Skip to main content

addRecord()

Last updated 8/07/2025

The

addRecord()
is a function on the
Five
object that adds a record to the current internal form transactions in the frontend that will be ready to be sent for saving into the database, either when a user clicks the Save button at the top of the form, or when the
saveRecords()
function is called via Five's API. Technically it is an API version of Five's forms.

Available

Client

Function Signature
addRecord(actionKey: string, record: FiveRecord) : boolean;

ParameterTypeDescription
actionKey
stringThe action key for the form action associated to the record as a string
record
FiveRecordA pre-populated FiveRecord object

Return Value

true
or
false

Examples

addRecord()