News:

Looking for documentation? Take a look on our wiki

Main Menu

Color chooser custom fields

Started by groentjie, January 18, 2012, 09:43:48 AM

Previous topic - Next topic

groentjie

Is there a way to have a sort of color chooser for a custom field.
I am building a website where people can but pillows. but there are hundreds of colors. So the dropdown is not that nice, is there some sort of possibility with Ajax or something like that, where they can use a color picker?

balai

You can use a color picker library e.g.http://jscolor.com/

Together with the plugin for adding text in the custom fields

Then you will see the hexademical value of the selected color in thebackend

JeeT.Birdi

Can you give us more details about how to doing it?

JeeT.Birdi

#3
I managed to do it like this, can be helpfull for someone...
Install Chronoforms 5
Download the jscolor at jscolor.com
Extract the folder to the root (like /jscolor/jscolor.js)
Open my component chronoforms5, and open my form. Create a field type text box.
Go onto the code tab, choose custom code, and ad a the beginning:
<script type="text/javascript" src="jscolor/jscolor.js"></script>
and the find my text box field and change the type to "input color"

Voila, should be working for Joomla 3.3.6 and Chronofroms 5