Custom light box can't save changes

I have created a custom lightbox It pops up and properly populates itself, my issue is when I hit the save button my javascript code for getValues is called and returns however nothing else happens. My EventManager which is called to get events is not called to save the events.

One issue I notice is that the small x on the top right is missing.

Any ideas would be helpful

[code]



Title
    <label form="event_notes">Notes</label>
            <textarea rows="5" cols="40" id="notes" name="notes" > </textarea>

    
    <label form="event_cid">customer id</label>
            <input id="event_cid" name="cid" type="text"/>
    
     
     
    <label form="event_cid">type</label>
            <select id="type" name="type">
            	<option value=0>Unknown</option>
            </select>   <br>
         <label for="installer">installer</label>
   
        <select id='installer' name=installer>
			<option value="0">None</option>
		</select> <br>
            
	<label for="event_start_date">From</label>
            <input id="event_start_date" name="start_date"  type="text" size=40/>

	<label for="event_end_date">To</label>
            <input id="event_end_date" name="end_date" type="text" size=40/>

	<input id="Hidden1" name="id" type="hidden"/>
</form>
<div> 
	<input type="button" value="Save" onclick="lightbox.save()" />
	<input type="button" value="Cancel" onclick="lightbox.close()" />
	<input style="margin-left:86px" type="button" value="Delete" onclick="lightbox.remove()"/>
</div>
[/code]

Also hitting save does not close the window. cancel will close it, and delete will delete the event then close the lightbox.

It seems to me the solution is to in the getValues function push save the data myself then call lightbox.close() before returning out of getValues. This seems totally wrong and would like some help.

Hi,
there is a difference in a flag “true/false” when lightbox is closed with or without saving the changes.
docs.dhtmlx.com/scheduler/api__s … htbox.html
If set to true, the changes, made in the lightbox, will be saved before closing.

Try again the source code of our sample:
docs.dhtmlx.com/scheduler/sample … _form.html