Importing Database with Tags

Hello!

I am looking to upload a database that I am hoping to make filterable on the user-end through the use of tags. I’ve got the buttons all set up and scripted but is there a way to just import a sheet with the tags already in there? It seems like when I use a regular comma delimiter, I get error messages returned on the whole field. I’m hoping to avoid a situation where I have to sit there and type out each tag on each item since aside from being time-intensive, the tagging function in the database side is a little clunky.

Any advice?

Hi, Jasmine. Try this; it has been working for me. 1) Before you do the import, click the three dots at the top of the field in which you want to have Tags. 2) Click Manage Field. 3) Change Tags to Text. 4) Click Update and ignore the warning about about breaking connections. 4) In your text/CSV file place square brackets and quotes around your tags, like this [“tag”] or in the case of multiple tags in the same record [“tag1”,“tag2”]. Save this change. 5) Do your import. 6) Go back to Manage Field and change Text back to Tags. 7) Click Update and ignore the warning about about breaking connections. Please let me know if you discover anything new. Good luck.

2 Likes

Yes don’t think that the Tags field in the dataset is for tags like wix as the tags field in the Wix dataset are actually for Checkbox Groups.

https://support.wix.com/en/article/about-user-input-elements
Checkbox Group
User Input Element:
Checkbox Group allow visitors to make multiple selections.
Description:
A checkbox group have a label (text displayed on your page) and a value (data stored in your collection).
The options selected (values) by a visitor are saved as a batch of text separated by commas.
Connects To:
Tags Field

You can see more about checkbox groups here, which is how it is stored in the dataset.
https://www.wix.com/corvid/reference/$w.CheckboxGroup.html
$w(“#myCheckboxGroup”).value = [“value1”, “value2”];

You will see in the line of code above the ’ [“value1”, “value2”] ’ part of which this is how you should have it stored in your dataset and as Jack has stated how to do it in his workaround for you.

However, the tag field can be used for #hashtags. See how here .

1 Like