Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.