getInput() not working

Hello people,

The listed getInput() function (docs.dhtmlx.com/doku.php?id=dhtm … m_getinput) is not working/not existing.

Also, a minor detail towards the documentation of the button object here docs.dhtmlx.com/doku.php?id=dhtm … orm_button. The ‘command’ attribute is not included…

You might want to provide the code that isn’t working for you.

Here’s the HTML code that matters:

[code]

[/code]

Below is the JS code:

[code]var dx = {};

var form_login = [
    {
        type: "fieldset",
        name: "data",
        label: "Inloggen",
        width: 380,
        list:[
            {
                type: "label",
                label: ""
            },
            {
                type: "input",
                name: "_username",
                value: dx.last_username,
                label: "E-mail adres:",
                width: 280
            },
            {
                type: "password",
                name: "_password",
                label: "Wachtwoord:",
                width: 280
            },
            {
                type: "checkbox",
                name: "_remember_me",
                label: "Onthoud mijn gegevens",
                checked: false
            },
            {
                type: "button",
                command: "login",
                value: "Inloggen"
            }
        ]
    }
];

dx.windows = new dhtmlXWindows();
dx.windows.enableAutoViewport(false);
dx.windows.attachViewportTo("windows_view_port");
dx.windows.setImagePath("/imgs/");
dx.windows.setSkin("dhx_skyblue");

dx.window = dx.windows.createWindow("login", 10, 10, 400, 250);
dx.window.centerOnScreen();
dx.window.denyResize();
dx.window.denyMove();
dx.window.denyPark();
dx.window.keepInViewport(true);
dx.window.setModal(false);
dx.window.button("close").disable();

var obj = document.getElementById('login_form');

dx.form = new dhtmlXForm(obj, form_login);

dx.form.getInput("_password").onkeyup = function(event) {
    if (event.keyCode == 13) {
        document.forms[0].submit();
    }
}

dx.form.attachEvent("onButtonClick", function(id, cmd) {
    if (cmd == "login") {
        if (dx.form.validate())
            document.forms[0].submit();
    }
});
dx.window.attachObject(obj);

[/code]

The listed getInput() function (docs.dhtmlx.com/doku.php?id=dhtm … m_getinput) is not working/not existing.
Unfortunately we cannot reproduce this issue locally. What version of dhtmlxForm do you use?

Also, a minor detail towards the documentation of the button object here docs.dhtmlx.com/doku.php?id=dhtm … orm_button. The ‘command’ attribute is not included
Thank you for your note, we will fix documentation as soon as possible