Jump to content

How to put DIV tags around a field in editviewdefs.php (in SugarCRM)


hadoob024

Recommended Posts

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>',
          ),
        ),

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.