{{! @template local_treestudyplan/element_text_integer Template for integer only field Example context (json): { "element": { "name": "test", "id": "test0", "size": null, "error": null, "value": "Sample text", "frozen": false, "hardfrozen": false, "iderror": "test0_error", "attributes": "" }, "unsigned": true, "nonzero": true } }} {{< core_form/element-template }} {{$element}} {{/element}} {{/ core_form/element-template }} {{#js}} require(['local_treestudyplan/util/formfields'], function(formfields) { formfields.textInteger({{#quote}}{{element.id}}{{/quote}},{{unsigned}},{{nonzero}}); }); {{/js}}