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
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.