Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Heosforo Posted January 17, 2018 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
Nathan Explosion Posted January 17, 2018 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}
Heosforo Posted January 17, 2018 Author 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.