Description
With this function, the data from one form field (column) can be moved to another form field and converted with a user-supplied function.
Usage
migrateFieldData(
.data,
from,
to,
fn = function(x) x,
idColumn = as.name("_id")
)
Arguments
Argument | Description |
---|---|
.data |
remote records object of the form online |
from |
the source form field from which to get the data |
to |
the destination form field which will receive the converted data |
fn |
the user-supplied conversion function; default is to do nothing |
idColumn |
the id column. The default is _id |
Value
The form field schema after the addition. This will be the form field schema from the server if changes are uploaded.