Skip to main content

Last Instance

info

fieldIdentifier where ids but this method is deprecated, use fieldSlug instead

getLastInstanceSavedFieldByIdAndCurrentMetadata​

Get the last instance saved field by its id and current metadata

Arguments

  • fieldIdentifier: String the slug of the field

Return dynamic

local field = getLastInstanceSavedFieldByIdAndCurrentMetadata(fieldIdentifier)

getLastInstanceSavedFieldByIdAndCurrentMetadataAndSubMetadata​

Get the last instance saved field by its id and current metadata and sub-metadata

Arguments

  • fieldIdentifier: String the slug of the field
  • metadata: Map<String, dynamic> the sub-metadata

Return dynamic

local field = getLastInstanceSavedFieldByIdAndCurrentMetadataAndSubMetadata(fieldIdentifier, metadata)

getLastInstanceSavedFieldByIdAndMetadata​

Get the last instance saved field by its id and metadata

Arguments

  • fieldIdentifier: String the slug of the field
  • metadata: Map<String, dynamic> the metadata

Return dynamic

local field = getLastInstanceSavedFieldByIdAndMetadata(fieldIdentifier, metadata)

getLastInstanceSavedFieldByIdAndSubMetadata​

Get the last instance saved field by its id and sub-metadata

Arguments

  • fieldIdentifier: String the slug of the field
  • metadata: Map<String, dynamic> the sub-metadata

Return List of dynamic

local fields = getLastInstanceSavedFieldByIdAndSubMetadata(fieldIdentifier, metadata)

getLastInstanceSavedFieldsById​

Get the last instance saved fields by their id

Arguments

  • fieldIdentifier: String the slug of the field

Return List of dynamic

local fields = getLastInstanceSavedFieldsById(fieldIdentifier)

getLastInstanceSavedFieldsIdentifierAndValueByIdAndSubMetadata​

Get the last instance saved fields identifier and value by their id and the sub-metadata

Arguments

  • fieldIdentifier: String the slug of the field
  • metadata: Map<String, dynamic> the sub-metadata

Return Map<DartFieldIdentifier, dynamic>

local fields = getLastInstanceSavedFieldsIdentifierAndValueByIdAndSubMetadata(fieldIdentifier, metadata)

getLastInstanceSavedFirstFieldById​

Get the last instance first field saved by its id

Arguments

  • fieldIdentifier: String the slug of the field

Return dynamic

local field = getLastInstanceSavedFirstFieldById(fieldIdentifier)

getLastSavedFieldByIdAndMetadata​

Get the last saved field by its id and metadata

Arguments

  • fieldIdentifier: String the slug of the field
  • metadata: Map<String, dynamic> the metadata

Return dynamic

local field = getLastSavedFieldByIdAndMetadata(fieldIdentifier, metadata)

getLastSavedFieldFromFormIdByIdAndMetadata​

Get the last saved field from a form by its id and metadata

Arguments

  • fieldIdentifier: String the slug of the field
  • metadata: Map<String, dynamic> the metadata
  • formId: int the id of the form

Return dynamic

local field = getLastSavedFieldFromFormIdByIdAndMetadata(fieldIdentifier, metadata, formId)

getAllSavedFieldFromFormId​

Get the all fields from last instance & given form id

Arguments

  • formId: int the id of the form

Return Map<DartFieldIdentifier, dynamic>

local fields = getAllSavedFieldFromFormId(formId)

Table​

Function NameDescriptionFirst ArgumentSecond ArgumentThird ArgumentReturn
getLastInstanceSavedFieldByIdAndCurrentMetadataGet the last instance saved field by its id and current metadatafieldIdentifier: the slug of the fielddynamic
getLastInstanceSavedFieldByIdAndCurrentMetadataAndSubMetadataGet the last instance saved field by its id and current metadata and sub-metadatafieldIdentifier: the slug of the fieldmetadata: the sub-metadatadynamic
getLastInstanceSavedFieldByIdAndMetadataGet the last instance saved field by its id and metadatafieldIdentifier: the slug of the fieldmetadata: the metadatadynamic
getLastInstanceSavedFieldByIdAndSubMetadataGet the last instance saved field by its id and sub-metadatafieldIdentifier: the slug of the fieldmetadata: the metadataList<dynamic>
getLastInstanceSavedFieldsByIdGet the last instance saved fields by their idfieldIdentifier: the slug of the fieldList<dynamic>
getLastInstanceSavedFieldsIdentifierAndValueByIdAndSubMetadataGet the last instance saved fields identifier and value by their id and the sub-metadatafieldIdentifier: the slug of the fieldmetadata: the sub-metadataMap<DartFieldIdentifier, dynamic>
getLastInstanceSavedFirstFieldByIdGet the last instance first field saved by its idfieldIdentifier: the slug of the fielddynamic
getLastSavedFieldByIdAndMetadataGet the last saved field matching id and metadata in all instance of the same formfieldIdentifier: the slug of the fieldmetadata: the metadatadynamic
getLastSavedFieldFromFormIdByIdAndMetadataGet the last saved field matching id and metadata in all instance of given formfieldIdentifier: the slug of the fieldmetadata: the metadataformId: the id of the formdynamic
getAllSavedFieldFromFormIdGet the all fields from last instance & given form idformId: the id of the formMap<DartFieldIdentifier, dynamic>