We would like to conditionally render one of two hyperlinks or a blank space in a Table field, based upon the value from a Model set up strictly for this purpose. It looks like we’re having an issue where the browser “Cannot read property ‘displaytype’ of undefined”, but I can’t quite figure out where my data calls are going wrong – or whether there might be another issue.
var field = '{{$Model.AOPStatus.fieldsmap.name.AoP_Status__c}}', value = '{{$Model.AOPStatus.data.0.AoP_Status__c}}', stringValue = value.toString(); $ = skuid.$; switch(value) { case 'Ready for Review' : stringValue = '<a href = "/apex/skuid__ui?page=SSA-Counselor-Approval-of-Participation">For Your Review</a>'; break; case 'Ready for Review' : stringValue = 'Approval Completed'; break; default : stringvalue = null; break; } skuid.ui.fieldRenderersffield.metadata.displaytype]afield.mode](field,stringValue);