Can't Find Variable dhtmlXForm

Hello there!
I’m using one of the samples as a base…
dhtmlx.com/docs/products/dhtmlxF … .html#code

I only changed a few names of fields and the code shows up an error like above… “ReferenceError: Can’t find variable: dhtmlXForm”.
Any Ideas?
Here’s the code…

testFourm var myForm, formData; function doOnLoad() { formData = [ {type: "settings", position: "label-left", labelWidth: 130, inputWidth: 160}, {type: "label", label: "Work"}, {type: "input", label: "Ticket Number", value: "", required: true}, {type: "input", label: "Client", value: ""}, {type: "input", label: "Time", value: "", required: true}, {type: "select", label: "User Type", validate: "myFunc", options:[ {value: 0, text: "Tom"}, {value: 1, text: "Hank"}, {value: 2, text: "George"}, {value: 3, text: "Ken"}, {value: 4, text: "Eric"}, {value: 5, text: "Dave"}, {value: 6, text: "Matt"} ]}, {type: "button", value: "Submit"} ]; myForm = new dhtmlXForm("myForm", formData); myForm.enableLiveValidation(true); myForm.attachEvent("onButtonClick",function(){ myForm.validate(); }); } function myFunc(val) { return (val > 0); }
</script>

Let me know if anyone has any ideas :slight_smile: Thanks

Hello
It seems like you use incorrect source files:

You need dhtmlx.js and dhtmlx.css instead of dhtmlxgrid :slight_smile:

Totally helped!
Thanks!!

You are welcome!