Form.Load working in V2 but not in V3

Hello,

When I switched to Dhtmlx V3 my form stopped loading properly.

I initialize HTML form like this:

pform = new dhtmlXForm("formdemo");

Form code is:

<form id="personnel_form" action="" name="personnel_form">
<div id="formdemo" class="formContainer" style="height:97%;overflow:auto;">
        
            
            <fieldset><legend>ID & Photo</legend>
                <ul  class="form hvv">
                    <li>
                        <label></label>
                        <ul class="vhh" style="background-color:#FFF">
                        <li><label>ID</label><input name="id" bind="id" type="text" readonly/></li>
                        <li class="required"><label>Code</label><input name="code" bind="code" type="text" validate="NotEmpty"/></li>
                        <li><label>Active</label><input name="isactive" bind="isactive" type="checkbox"   /></li>
                        <li>
                            <label></label><input type="button" value="Upload Photo"/>
                        </li>
                        </ul>
                    </li>
                    <li>
                        <label></label>
                        <ul class="vvv" style="background-color:#FFF">
                            <li>  
                                <input name="photo_path" bind="photo_path" type="image"  src="./images/nophoto.gif" style="width:100px;height:120px;"/>
                            </li>
                        </ul>
                    </li>
                    
                    
                </ul>

            </fieldset>

etc. etc.

Then I load the form using :

pform.load("loadform.php?id=1");

If I switch back to older version it still works fine, but in V3 form is empty after Load.

Thank you

I just read this thread in forum : viewtopic.php?f=17&t=21583

Which mentions that HTML form is not supported in V3 , but this is a bit confusing as there is a sample in the docs ( docs.dhtmlx.com/doku.php?id=dhtmlxform:html ) which shows example of HTML initialization.

Is HTML initialization supported? Are the UL/LI tags the only way to initialize a form using HTML?

Thank you

Hello

Should work. Make sure you have main tag which is:

<ul class="dhtmlxForm" name="myForm">

Here is a demo:
dhtmlx.com/docs/products/dht … om_ul.html

If you still have problems please provide completed demo.