Add Contact to Target List

Is it possible to add a Contact to a Target List while in the Account Screen or Contact Screen?

The use case is that we are going to do a Customer Sat survey and I need users to go to an account and choose the specific Contacts the survey should go to and then add them to a Target List.

Parents
  • in theory it is simple to add such drawer.

    Lets get ListLayout as an example:

    $viewdefs['base']['layout']['list'] = array(
        'components' => array(
            array(
                'view' => 'massupdate',
            ),
            array(
                'view' => 'massaddtolist',
            ),
            array(
                'view' => 'recordlist',
                'primary' => true,
            ),
            array(
                'view' => 'list-bottom',
            ),
        ),
    );
    

    Now lets look at SubpanelLayout

    $viewdefs['base']['layout']['subpanel']  = array (
        'template' => 'panel',
        'components' => array (
            array (
                'view' => 'panel-top',
            ),
            array (
                'view' => 'subpanel-list',
            ),
            array (
                'view' => 'list-bottom',
            ),
        ),
        'last_state' => array(
            'id' => 'subpanel'
        ),
    );
    

    So we may need to add view massaddtolist between panel-top and subpanel-list and inherit the code which manage its rendering.

    This is it!!!!

    "A piece of cake", or as we say here in Brazil: "Mamão com açúcar" (Papaya with sugar)

    André Lopes
    Lampada Global
    Skype: andre.lampada
Reply
  • in theory it is simple to add such drawer.

    Lets get ListLayout as an example:

    $viewdefs['base']['layout']['list'] = array(
        'components' => array(
            array(
                'view' => 'massupdate',
            ),
            array(
                'view' => 'massaddtolist',
            ),
            array(
                'view' => 'recordlist',
                'primary' => true,
            ),
            array(
                'view' => 'list-bottom',
            ),
        ),
    );
    

    Now lets look at SubpanelLayout

    $viewdefs['base']['layout']['subpanel']  = array (
        'template' => 'panel',
        'components' => array (
            array (
                'view' => 'panel-top',
            ),
            array (
                'view' => 'subpanel-list',
            ),
            array (
                'view' => 'list-bottom',
            ),
        ),
        'last_state' => array(
            'id' => 'subpanel'
        ),
    );
    

    So we may need to add view massaddtolist between panel-top and subpanel-list and inherit the code which manage its rendering.

    This is it!!!!

    "A piece of cake", or as we say here in Brazil: "Mamão com açúcar" (Papaya with sugar)

    André Lopes
    Lampada Global
    Skype: andre.lampada
Children