JavaScript/jQuery Form - Form Properties

To change the Form configuration at runtime, call the option(optionName, optionValue) method.

JavaScript
  • $(function() {
  • var form = $("#formContainer").dxForm({
  • formData: {
  • firstName: "John",
  • lastName: "Heart",
  • phone: "+1(213) 555-9392",
  • email: "jheart@dx-email.com"
  • }
  • }).dxForm("instance");
  •  
  • $("#checkBoxContainer").dxCheckBox({
  • text: 'Disable the Form',
  • value: false,
  • onValueChanged: function (e) {
  • form.option("disabled", e.value);
  • }
  • });
  • });
See Also