hadoob024 Posted April 14, 2010 Share Posted April 14, 2010 I have a custom field that I want to put inside a DIV tag. How do i go about that? I figure I need to add a customCode section to that field's definitions under editviewdefs.php, right? Here's my field definition so far: 5 => array ( 0 => array ( 'name' => 'case_id_c', 'label' => 'LBL_CASE_ID', ), ), I tried something like this but with no luck: 5 => array ( 0 => array ( 'name' => 'case_id_c', 'label' => 'LBL_CASE_ID', 'customCode' => '<div id = \'TESTINGTESTING\'>{$fields.case_id_c}</div>', ), ), Link to comment https://forums.phpfreaks.com/topic/198517-how-to-put-div-tags-around-a-field-in-editviewdefsphp-in-sugarcrm/ Share on other sites More sharing options...
ChemicalBliss Posted April 15, 2010 Share Posted April 15, 2010 I dont know SugarCRM, but i know you will have to edit a/the function that deals with turning that array into html. If you can find that part im sure someone can help you. -cb- Link to comment https://forums.phpfreaks.com/topic/198517-how-to-put-div-tags-around-a-field-in-editviewdefsphp-in-sugarcrm/#findComment-1042134 Share on other sites More sharing options...
hadoob024 Posted April 15, 2010 Author Share Posted April 15, 2010 Cool. Thanks for the tip. I figured out a workaround. I wanted to put everything in a div so that I could show/hide a field. Just looked at the naming mechanism for the field itself and am able to use their ID's now instead! Sweetness. Link to comment https://forums.phpfreaks.com/topic/198517-how-to-put-div-tags-around-a-field-in-editviewdefsphp-in-sugarcrm/#findComment-1042375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.