Tutorial: getAllFieldsData

getAllFieldsData

To get the values of all fields in the form use getAllFieldsData. Returns an object containing objects with field name and value

formsApi.getAllFieldsData()

To get the values and also more metadata about each field pass true as input to getAllFieldsData.
Returns an object containing objects containing meta data about each field (
    include_in_submission,
    index, (part_index in db)
    label,
    name,
    step, (Object containing meta data about step: description, heading, name, step_index, uuid)
    type,
    uuid,
    value
    value_as_text (If Checkbox-, Radio-, SelectField the text representation of the value will be included)
)

formsApi.getAllFieldsData(true)