Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing data to checkboxes #380

Closed
sunnylawn opened this issue Apr 27, 2023 · 4 comments
Closed

Importing data to checkboxes #380

sunnylawn opened this issue Apr 27, 2023 · 4 comments
Labels
question Further information is requested

Comments

@sunnylawn
Copy link

I'm wanting to import some data onto pre-existing Contacts.

They have a checkbox, with three options available, when importing, contacts that only have one of the options available works no problem, but when importing more than on of the options it fails with a 'Festival is invalid." With festival being being the name of the field, and the options being North, South, Scotland.

I'm importing from a CSV with the following format:

email@email.com,firstName,lastName,"north"

The above works, but when adding in a second:

email@email.com,firstName,lastName,"north,south"

It fails? Is there a specific format for importing multiple options, or am I pushing it too much with that?

Thanks

@sunnylawn sunnylawn added the question Further information is requested label Apr 27, 2023
@bencroker
Copy link
Collaborator

Can you try the following format?

email@email.com,firstName,lastName,"[\"north\",\"south\"]"

@sunnylawn
Copy link
Author

No luck sorry, same error.

@bencroker
Copy link
Collaborator

It turned out that the imported value needed to be JSON decoded. I’ve added in bddb134 and released in version 2.6.1.

Note that CSV requires that double quotes are doubled, so please test it as follows.

email@email.com,firstName,lastName,"[""north"",""south""]"

@sunnylawn
Copy link
Author

Nailed it! Thanks Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants