VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: groentjie on January 18, 2012, 09:43:48 AM

Title: Color chooser custom fields
Post by: groentjie on January 18, 2012, 09:43:48 AM
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?
Title: Re: Color chooser custom fields
Post by: balai on January 18, 2012, 10:18:45 AM
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
Title: Re: Color chooser custom fields
Post by: JeeT.Birdi on January 26, 2015, 19:09:40 PM
Can you give us more details about how to doing it?
Title: Re: Color chooser custom fields SOLVED
Post by: JeeT.Birdi on January 31, 2015, 15:32:40 PM
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