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.

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

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