1

Can I set the value of a Color Field to a hex value? Or only if the particular browser's color picker supports this? Maybe this is a feature request: please let us get and set color values in hex.

5

If you have created a Color Field the color selector dialogue uses your browsers built-in color selector.

On Chrome and Firefox, you should see a dialogue like this:

| enter image description here | enter image description here |

If you click over to the 2nd tab (indicated by the sliders) you'll be able to insert a hex value for the color in the input field at the bottom.

In Firefox you'll need to select RGB Sliders from the dropdown, then you'll see the Hex color input at the bottom.

|improve this answer|||||
  • So Chrome and Safari: yes, Firefox: no? I hadn't found that in Chrome, so thanks!! – Marion Newlevant Jan 6 '15 at 18:18
  • I added a screenshot for Firefox. The Hex input is there, just a bit hidden. – Brett DeWoody Jan 6 '15 at 18:29
  • For what it's worth, the native color picker that Craft activates in Windows 7 (in Chrome) is the same fugly one in use since Windows 95: i.stack.imgur.com/awjVW.png - I'd urge integration of a Javascript-based custom color picker. – Sandwich Jul 23 '15 at 22:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.