AnsweredAssumed Answered

How to apply condition based role in hbs file ..

Question asked by Mehul Bhandari on Jan 22, 2017
Latest reply on Jan 24, 2017 by Mehul Bhandari

Hi Folks 

 

I have override the phone field and put one image beside phone number..

So

i want like if user has access rights of edit on Lead then icon will display else not visible.

ex.

custom/clients/base/fields/phone/detail.hbs

{{#if value}}
    
    <a class="ellipsis_inline" style="float: left" onclick="sendsms('{{value}}','{{module}}','{{model.id}}');"><img style="cursor:pointer;float:left;margin-right:5px;padding-top:2px;width:16px" src="custom/themes/default/images/sms.png"></a>

     <div class="ellipsis_inline" data-placement="bottom" title="{{value}}">
         {{#if skypeValue}}
             <a href="callto:{{skypeValue}}">
             {{value}}
             </a>
        {{else}}
             {{value}}
        {{/if}}
     </div>
   
{{/if}}

 

Tevfik Tümer Ajay Kumar sidhu sidhu

Outcomes