Hello all,
based on popular guide:
I would try to set conditional format of multienum field but seems not easy like enum or text.
With enum my custom style is:
$colour = substr(md5($bean->status),0,6);
$bean->status = "<div style='padding: 0 0.2em 0 0.5em;border-radius: 4px;display: inline-block;color: #fefefe;background-color: #$colour; border: solid 2px #$colour;'>".$app_list_strings['contracts_status_list'][$bean->status]."</div>";
But with multieum this is not working:
$statusTag = explode(",", $bean->status_tag);
foreach($statusTag as $tag) {
$tagPurified = trim($tag, '^');
$statusTagField .= ",<span style='padding: 0 0.2em 0 0.5em;border-radius: 4px;display: inline-block;color: #fefefe;background-color: #$colour; border: solid 2px #$colour;'>".$app_list_strings['contracts_status_tag_list'][$tagPurified]." </span>";
}
$bean->status_tag = ltrim($statusTagField,",");
Seems that multienum does not render html, please see attached image
Any help is highly appreciate!
Many thanks