Colour picker giving hsv value

Permalink Browser Info Environment
Hello,

When I select a colour with the colour picker, I get an hsv value (I need it to be rgb). Using a swatch is fine, I get an rgb value from that - see screen grabs attached.

Is this a bug, or is there a configuration somewhere to force the colour picker to give an hsv value?

Thanks,
Rich.

2 Attachments

Type: Pre-Sale
Status: Resolved
drbiskit
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Rich,

There should be an option for the color picker field to choose from preferred formatting. If you allow transparency though, I think it will automatically go hsv? Did you try different settings when creating the Block? If so, send me the config.json contents (as a .txt file) here, so I can load that in and play with that.

Kind regards,

Ramon
drbiskit replied on at Permalink Reply 1 Attachment
drbiskit
Hey Ramon - Thank you for responding so quickly. I have attached the json here as a txt file.

Just to confirm a couple of things to hopefully help:
- I hadn't selected the 'Preferred format', so as to allow both hex and rgb inputs. I'd left this set to 'None'.
- I hadn't selected 'Allow alpha transparency selection'.
- When I first go to select a colour via the picker, it gives an hsv value, unless I use one of the swatches at the top of the panel, then that does give an rgb value. Once I have an rgb value added into the text field, then using the colour picker will update the text field with an rgb value - So, it is just the initial first colour selection via the picker where I have the problem. I hope that makes sense!

Thanks!
Rich.
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Rich,

Sorry for the late reply! Had a couple of things going on over here, so hadn't got the time to do so. My bad.

As for the formatting, apparently it's within the Colorpicker (jQuery) to give preference over HSV. So if you set the preferred to RGB, it will take RGB. Whenever you want to enter a hex color (like #ccc), it will automatically convert to the RGB value for you (so you can still enter it). It's not that these things arent'allowed, it will just convert it for you instead.

If you want to make a quick edit, go to your form.php file and search for "preferredFormat". You can change the value that is set there to "rgb" (string value). I think that's how you'd wan it to be.

Let me know if you still have questions and if I answered you correctly :)

Kind regards,

Ramon
drbiskit replied on at Permalink Reply
drbiskit
Hey Ramon, Not a problem at all, I know how it is!

Thanks for this reply, and you are spot on - Changing preferredFormat to rgb fixed it perfectly.

Many thanks, and all the best!
Rich.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.0
Version Installed - 8.4.0
Database Version - 20180524000000

# concrete5 Packages
Block Designer (3.2.0), Block Designer Pro (3.0.0)

# concrete5 Overrides
blocks/clients/add.php, blocks/clients/icon.png, blocks/clients/controller.php, blocks/clients/css_form/repeatable-ft.form.css, blocks/clients/css_form, blocks/clients/config.json, blocks/clients/composer.php, blocks/clients/db.xml, blocks/clients/js_form/handlebars-helpers.js, blocks/clients/js_form/handlebars-v4.0.4.js, blocks/clients/js_form, blocks/clients/auto.js, blocks/clients/view.php, blocks/clients/edit.php, blocks/clients/form.php, blocks/clients, blocks/form/template/orignal.php, blocks/form/template, blocks/form/view.php, blocks/form, blocks/accordion/add.php, blocks/accordion/icon.png, blocks/accordion/controller.php, blocks/accordion/css_form/repeatable-ft.form.css, blocks/accordion/css_form, blocks/accordion/config.json, blocks/accordion/composer.php, blocks/accordion/db.xml, blocks/accordion/js_form/handlebars-helpers.js, blocks/accordion/js_form/handlebars-v4.0.4.js, blocks/accordion/js_form, blocks/accordion/auto.js, blocks/accordion/view.php, blocks/accordion/edit.php, blocks/accordion/form.php, blocks/accordion, blocks/business_type/add.php, blocks/business_type/icon.png, blocks/business_type/controller.php, blocks/business_type/config.json, blocks/business_type/composer.php, blocks/business_type/db.xml, blocks/business_type/auto.js, blocks/business_type/view.php, blocks/business_type/edit.php, blocks/business_type/form.php, blocks/business_type, blocks/cta/add.php, blocks/cta/icon.png, blocks/cta/controller.php, blocks/cta/config.json, blocks/cta/composer.php, blocks/cta/db.xml, blocks/cta/auto.js, blocks/cta/view.php, blocks/cta/edit.php, blocks/cta/form.php, blocks/cta, blocks/autonav/templates/boost_header_nav_alt.php, blocks/autonav/templates/boost_header_nav.php, blocks/autonav/templates/boost_footer_nav.php, blocks/autonav/templates, blocks/autonav, blocks/content/view.php, blocks/content/templates/full_width.php, blocks/content/templates/supporting_hdr_title.php, blocks/content/templates/article.php, blocks/content/templates, blocks/content, blocks/youtube/view.php, blocks/youtube, blocks/express_form/view.php, blocks/express_form/templates/newsletter_signup.php, blocks/express_form/templates/event_signup.php, blocks/express_form/templates, blocks/express_form, blocks/search/view.php, blocks/search, blocks/boost_feature/add.php, blocks/boost_feature/icon.png, blocks/boost_feature/controller.php, blocks/boost_feature/config.json, blocks/boost_feature/composer.php, blocks/boost_feature/db.xml, blocks/boost_feature/auto.js, blocks/boost_feature/view.php, blocks/boost_feature/edit.php, blocks/boost_feature/form.php, blocks/boost_feature, blocks/page_list/view.php, blocks/page_list/templates/performance_service_list_distributor.php, blocks/page_list/templates/article_list.php, blocks/page_list/templates/performance_service_list_reseller.php, blocks/page_list/templates/performance_service_list_vendor.php, blocks/page_list/templates/article_list_sidebar.php, blocks/page_list/templates/article_list_footer.php, blocks/page_list/templates/article_list_rows.php, blocks/page_list/templates/service_list.php, blocks/page_list/templates, blocks/page_list, blocks/next_previous/view.php, blocks/next_previous/templates/view.php, blocks/next_previous/templates, blocks/next_previous, blocks/service/add.php, blocks/service/icon.png, blocks/service/controller.php, blocks/service/config.json, blocks/service/composer.php, blocks/service/db.xml, blocks/service/auto.js, blocks/service/view.php, blocks/service/templates, blocks/service/edit.php, blocks/service/form.php, blocks/service, blocks/resource/add.php, blocks/resource/icon.png, blocks/resource/controller.php, blocks/resource/view-v1.php, blocks/resource/config.json, blocks/resource/composer.php, blocks/resource/db.xml, blocks/resource/auto.js, blocks/resource/view.php, blocks/resource/edit.php, blocks/resource/form.php, blocks/resource, elements/header_required.php, themes/boost/event.php, themes/boost/login.php, themes/boost/full_width.php, themes/boost/services.php, themes/boost/page_theme.php, themes/boost/page_not_found.php, themes/boost/rh_col.php, themes/boost/elements/page_banner.php, themes/boost/elements/header.php, themes/boost/elements/breadcrumb.php, themes/boost/elements/footer.php, themes/boost/elements, themes/boost/view.php, themes/boost/thumbnail.png, themes/boost/resources.php, themes/boost/page.php, themes/boost/assets/favicons/favicon-16x16.png, themes/boost/assets/favicons/mstile-310x310.png, themes/boost/assets/favicons/mstile-144x144.png, themes/boost/assets/favicons/safari-pinned-tab.svg, themes/boost/assets/favicons/favicon.ico, themes/boost/assets/favicons/android-chrome-192x192.png, themes/boost/assets/favicons/apple-touch-icon.png, themes/boost/assets/favicons/mstile-70x70.png, themes/boost/assets/favicons/mstile-310x150.png, themes/boost/assets/favicons/android-chrome-512x512.png, themes/boost/assets/favicons/site.webmanifest, themes/boost/assets/favicons/mstile-150x150.png, themes/boost/assets/favicons/browserconfig.xml, themes/boost/assets/favicons/favicon-32x32.png, themes/boost/assets/favicons, themes/boost/assets/css/bootstrap.min.css, themes/boost/assets/css/fontawesome-pro.css, themes/boost/assets/css/boost-styles.css, themes/boost/assets/css/webfonts/36EEFB_0_0.woff2, themes/boost/assets/css/webfonts/36EEFB_0_0.eot, themes/boost/assets/css/webfonts/36EEFB_0_0.ttf, themes/boost/assets/css/webfonts/36EEFB_0_0.woff, themes/boost/assets/css/webfonts, themes/boost/assets/css/fontawesome.css, themes/boost/assets/css/webfonts.css, themes/boost/assets/css, themes/boost/assets/images/go-to-market.svg, themes/boost/assets/images/boost-technology-group-logo.svg, themes/boost/assets/images/boost-placeholder-grey.png, themes/boost/assets/images/sales-consultancy.svg, themes/boost/assets/images/b-logo.svg, themes/boost/assets/images/demand-generation.svg, themes/boost/assets/images/boost-bg-02.jpg, themes/boost/assets/images/boost-placeholder.png, themes/boost/assets/images/boost-bg-03.jpg, themes/boost/assets/images/asset-creation.svg, themes/boost/assets/images/boost-bg-01.jpg, themes/boost/assets/images/BTLC-logo.svg, themes/boost/assets/images/transparent-bg.png, themes/boost/assets/images/BTLC-logo-grey.svg, themes/boost/assets/images/test.png, themes/boost/assets/images/sales-up-skilling.svg, themes/boost/assets/images/partner-up-skilling.svg, themes/boost/assets/images/value-proposition.svg, themes/boost/assets/images/b-logo-grey.svg, themes/boost/assets/images/sales-as-a-service.svg, themes/boost/assets/images, themes/boost/assets/js/boost.js, themes/boost/assets/js/bootstrap.bundle.js, themes/boost/assets/js/bootstrap.bundle.min.js.map, themes/boost/assets/js/bootstrap.bundle.js.map, themes/boost/assets/js/prefixfree.min.js, themes/boost/assets/js/bootstrap.js, themes/boost/assets/js/bootstrap.bundle.min.js, themes/boost/assets/js/bootstrap.min.js, themes/boost/assets/js/popper.min.js, themes/boost/assets/js/bootstrap.js.map, themes/boost/assets/js/bootstrap.min.js.map, themes/boost/assets/js, themes/boost/assets/webfonts/fa-solid-900.ttf, themes/boost/assets/webfonts/fa-regular-400.svg, themes/boost/assets/webfonts/fa-regular-400.woff2, themes/boost/assets/webfonts/fa-solid-900.eot, themes/boost/assets/webfonts/fa-light-300.woff2, themes/boost/assets/webfonts/fa-light-300.svg, themes/boost/assets/webfonts/fa-brands-400.svg, themes/boost/assets/webfonts/fa-light-300.eot, themes/boost/assets/webfonts/fa-regular-400.woff, themes/boost/assets/webfonts/fa-brands-400.eot, themes/boost/assets/webfonts/fa-solid-900.svg, themes/boost/assets/webfonts/fa-solid-900.woff, themes/boost/assets/webfonts/fa-regular-400.ttf, themes/boost/assets/webfonts/fa-light-300.ttf, themes/boost/assets/webfonts/fa-light-300.woff, themes/boost/assets/webfonts/fa-solid-900.woff2, themes/boost/assets/webfonts/fa-brands-400.woff2, themes/boost/assets/webfonts/fa-brands-400.woff, themes/boost/assets/webfonts/fa-brands-400.ttf, themes/boost/assets/webfonts/fa-regular-400.eot, themes/boost/assets/webfonts, themes/boost/assets, themes/boost/description.txt, themes/boost/default.php, themes/boost/performance_assessment.php, themes/boost, src/Bootstrap4GridFramework.php

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.2.31 (Unix) mod_wsgi/3.5 Python/2.7.12 PHP/5.6.28 mod_ssl/2.2.31 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0

# Server API
apache2handler

# PHP Version
5.6.28

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 32M
sql.safe_mode - Off
upload_max_filesize - 32M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.