AnsweredAssumed Answered

How can I check whitespace in handlebar

Question asked by Autchara Chaiprom on Jan 18, 2017
Latest reply on Jan 19, 2017 by Rolustech Support

Hi all,


I create button beside phone field but some field has whitespace in database that make record show this button (see in screenshot field Fax).


I tried to googling to using {{~#value}} {{-#value}} but still not work.


How can I check if field has whitespace do not show button this in handlebar ?



my code in custom/clients/base/fields/phone/detail.hbs

{{#if value}}
<button class="btn btn-mini" type="button" name="btnphonenumber" style="float:left;margin-left:-28px;"><i class="fa fa-phone"></i></button>
<div class="ellipsis_inline">
<div data-placement="bottom"{{#if dir}} dir="{{dir}}"{{/if}} title="{{value}}">

    {{#if skypeValue}}
        <a href="callto:{{skypeValue}}">{{value}}</a>