Posted January 17, 20187 yr Hello guys I've created a color picker profile field, but how could I get the value from that field? Once I've selected the color, I just need to get the hex code. I have this: {$fieldData['core_pfieldgroups_1']['core_pfield_12|raw']} The idea: <p>Hello, I'm <span style="color: #{$fieldData['core_pfieldgroups_1']['core_pfield_12|raw']};">{$member->name}</span> and blah blah blah..</p> Please
January 17, 20187 yr This: {$fieldData['core_pfieldgroups_1']['core_pfield_12|raw']} will try to return the item in 'core_pfield_12|raw' which obviously doesn't exist. Have you tried: {$fieldData['core_pfieldgroups_1']['core_pfield_12']|raw} Edited January 17, 20187 yr by Nathan Explosion
January 17, 20187 yr Author Thanks mate, unfortunately the same thing is happening I'm getting this: (firebug) <div style="background-color: #551eb0; height: 15px; width: 15px; border: 1px solid black;" class="ipsPos_left"></div> With text field works well, although the idea was the color picker Edited January 17, 20187 yr by Heosforo
Archived
This topic is now archived and is closed to further replies.