Help on input self value + literal text

<input name="inp_name" type="text" required="true" class="form-control" id="inp_id" dmx-bind:value="value ? (value + 'KGM') : null">

What I want to achieve:
input + literal text e.g: when I input 10 into above input I expect result 10KGM.

The problem:
the above code will result 10KGMKGMKGMKGMKGMKGM… (infinite KGM). I’ve tried with just value + 'KGM' but still get the same result.

Any help is much appreciated.

Community Page
Last updated: