Is it possible to create button beside field

Hi all,

I would like to trick function by click on button beside phone number, is it possible to do this?

Look like below:

btnbtn.PNG

SugarEnt 7.6

Thanks,

May

Parents Reply
  • Why we not copy phone.js from clients/base/fields/phone/

    I got this message in console log:

    '//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.

    It's make my phone number disappear.

    What I do wrong or I miss something ?

    My code below:

    detail.hbs same as you.

    in /custom/Extension/application/Ext/JSGroupings/newGrouping.php

    <?php

    //creates the file cache/include/javascript/newGrouping.js

    $js_groupings[] = $newGrouping = array(

        'custom/testJS.js' => 'include/javascript/newGrouping.js',

    );

    in custom/testJS.js

    function one(){

            console.log("Hello World!");

    }

    in my /custom/clients/base/fields/phone has 4 files .hbs

    - detail.hbs
    - disabled.hbs
    - edit.hbs
    - list.hbs

Children