Editor Options

To change the options of an editor, get its instance first using the getEditor(field) method. After that, call the option(optionName, optionValue) or option(optionName, options) method of this instance.

JavaScript
$(function() {
    var form = $("#formContainer").dxForm({
        formData: {
            firstName: "John",
            lastName: "Heart",
            phone: "+1(213) 555-9392",
            email: "jheart@dx-email.com"
        }
    }).dxForm("instance");

    $("#buttonContainer").dxButton({
        text: "Disable the First Name Editor",
        onClick: function () {
            form.getEditor("firstName")
                .option("disabled", true);
        }
    });
});
NOTE
The getEditor(field) method is available for visible form items only.
See Also