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>', ), ), Quote 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- Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.