We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37521 ☆ A M B ☆
    • 30 Posts
    I've found solution:
    $modx->regClientStartupHTMLBlock('
            <script>
                Ext.onReady(function(){   
                    var nameInput = Ext.get("modx-template-templatename");
                    var staticFile = Ext.getCmp("modx-template-static-file");
                    staticFile.setValue(nameInput.getAttribute("value") + ".tpl");
                });
            </script>');