Forum Academy Marketplace Showcase Pricing Features

How to store color swatches in the database

I want to make a color picker that adds color swatches to the database.
I’m playing around with the Zeroqode color picker plugin, however i’m a bit unsure how to save a color selection to the database.
Does anyone know what format the data should have to be able to be rendered as a color?
And then how do I render the input back as color swatch in a repeating group?

@ZeroqodeSupport

1 Like

Hey, @kim3!

Sorry for a late reply :pray:

At a present functionality, the plugin doesn’t have such an event, however, we’ve found a workaround for you. Kindly refer to the video below.
Just a point to mention: there is a new Data Type created called Testcolourpicker with the field “colour” (type text) for your reference. You can use it as an example for your own idea of the data type.

Please, let us know if there is anything else we can assist with.

Best regards.

1 Like

Thank you so much, I’ll try this tmr.

1 Like

Hey, @kim3!

Happy to help! :slightly_smiling_face:

If there will be any questions, drop us a line here.

Best regards.