I have programmatically created 2 custom Display Suite fields (abc1 and abc2) for a content type xyz of type node.
I can see the fields on Manage Display for xyz but I need to show 1 custom field and hide the other depending on a few conditions.
I tried to do this in preprocess_fields in template.php with no luck. Where would be the best place to render the fields based on conditional checks?