This article is for Flatfile's Portal 2.0. If you'd like to check out the latest version of the Flatfile Data Exchange Platform, click here!
There is a modal that appears after a successful file upload that lets the end user know their import process is complete. Some Flatfile users would like to change this messaging from the default values, which can be done using the importer.displaySuccess modal. If you leave the value for this blank, the default value will simply be "Success."
Here's a code example of a customized message for the aforementioned modal, where "Thanks for your data." is the text displayed:
importer.displaySuccess("Thanks for your data.");
$("#raw_output").text(JSON.stringify(newRecords," ",2));
})
.catch(function(error){
console.info(error||"window close");
}