Heosforo Posted January 17, 2018 Share Posted January 17, 2018 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 Link to comment Share on other sites More sharing options...
Nathan Explosion Posted January 17, 2018 Share Posted January 17, 2018 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} Link to comment Share on other sites More sharing options...
Heosforo Posted January 17, 2018 Author Share Posted January 17, 2018 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.