UgnisSoftware / react-spreadsheet-import

Import flow for Excel (.xlsx) and CSV file with automated column matching and validation.

Home Page:https://ugnissoftware.github.io/react-spreadsheet-import/iframe.html?id=react-spreadsheet-import--basic&args=&viewMode=story

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I have input select and has options but my valid data is also shown in unmatch ?

abhishekchauhan-ipseity opened this issue · comments

I am using this {
label: "Country",
key: "country",
fieldType: {
type: "select",
options: [ { label: "United States", value: "USA" },
{ label: "Canada", value: "Canada"},
{ label: "United Kingdom", value: "UK" },
{ label: "Australia", value: "Australia" },
{ label: "Other", value: "Other" }],
},
example: "Select your country",
validations: [
{
rule: "required",
errorMessage: "Country selection is required",
level: "error",
},
],
},
and in my csv i have Canada data but it show that Canada is in unmatched data why ? does we have to write any validation rule if we want to pass valid data and gives select option only for invalid data ??

Hey @abhishekchauhan-ipseity this sounds like a duplicate of #141 if I understand correctly. If not feel free to reopen a ticket with an example file and configuration.