showfunction does exactly what it sounds like; it launches the importer. Ensure you have initialized the importer properly beforehand. Use this function like so:
onValidationRecordhook is called for each row (record) that a customer uploads. It allows you to specify custom frontend validations and display error messages in the importer for the user to fix. When you create a Template, each column contains an
internal key. These internal keys represent the
formatRecordhook can be used to format data automatically on behalf of a user. For example, if you have a field called
first_nameand you know that your system always requires
first_nameto be capitalized, you can use this callback to uppercase all
first_namerecords like so:
onSubmitwill pass all records to you after the user has made any necessary corrections to frontend validations. This callback expects you to submit the records to your backend in whatever way you typically would, we do not submit the records for you.
record._meta.id. In this case of a backend validation or error occurring, you can tell the importer to show a specific error to the user for a row. Note that after submission, only records with errors will remain visible to the user.