How can I add a popup help text near a field in Accounts module in SugarVersion 7.6

Hi, I want to add a pop-up help text to some fields in Accounts module

Like 

Name : [_________] ?

?- represents a information icon

and on clicking the ? icon  it should popup a help text

I'm using sugar version 7.6

Parents
  • You would simply create a custom field type for any fields that you need to add this to.  This is done from the client/base/fields.  The link below goes over all of it. 

    For example, if you wanted this on name field you could extend the file clients/base/fields/name/edit.hbs

    http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.5/UI_Model/Fields/Examples/Creating_Cu… 

    Let me know if you have any questions.

  • Hi Kenneth, 

    Thank you for the reply!. 

    I tried it on the name field, and i'm just a newbie to SugarCrm

    So I extended  clients/base/fields/name/edit.hbs

    and added a image next to Name field, 

    and this is my codicone in custom/clients/base/fields/name/edit.hbs


    <input type="text" name="{{name}}" value="{{value}}"{{#if def.len}} maxlength="{{def.len}}"{{/if}}{{#if def.placeholder}} placeholder="{{str def.placeholder this.model.module}}"{{/if}} class="inherit-width">
    {{#unless hideHelp}}{{#if def.help}}<p class="help-block">{{str def.help module}}</p>{{/if}}{{/unless}}

    // Link to the "help "

    <img src="{{custom/themes/default/themes/default/images/icon_info.gif}}">

Reply
  • Hi Kenneth, 

    Thank you for the reply!. 

    I tried it on the name field, and i'm just a newbie to SugarCrm

    So I extended  clients/base/fields/name/edit.hbs

    and added a image next to Name field, 

    and this is my codicone in custom/clients/base/fields/name/edit.hbs


    <input type="text" name="{{name}}" value="{{value}}"{{#if def.len}} maxlength="{{def.len}}"{{/if}}{{#if def.placeholder}} placeholder="{{str def.placeholder this.model.module}}"{{/if}} class="inherit-width">
    {{#unless hideHelp}}{{#if def.help}}<p class="help-block">{{str def.help module}}</p>{{/if}}{{/unless}}

    // Link to the "help "

    <img src="{{custom/themes/default/themes/default/images/icon_info.gif}}">

Children
No Data