Skip to content Skip to sidebar Skip to footer

Getvalue Not Working On Custom Template

I've been able to make my own field, using a costum template. This field consist in a textField followed by button at the end, on the same line, but I'm confronted to an issue. Whe

Solution 1:

With some help, I've been able to get it to work. So I just had to modify the template, new template :

<scripttype="text/x-handlebars-template"id="input-group-addon-template"><divclass="input-group">
        {{#control}}{{/control}}
        <divclass="input-group-btn"id="{{id}}-basic-btn" ><buttonclass="btn btn-default"id="{{id}}-button"onclick="click_function(event)" ><i {{#ifoptions.readonly}}class="fa fa-lock"{{else}}class="fa fa-unlock"{{/if}}></i></button></div></div></script>

So the big difference is that we don't precise the "input-type" anymore so that we don't override all usefull function as getValue etc.

Feel free to add some explication ! :D

Post a Comment for "Getvalue Not Working On Custom Template"