HTML view - opening and closing forms

HTML view - opening and closing forms

I have an HTML view page with an "Add Appointment" link which opens a form in a modal dialog, however I can't get the the form to close and then also have the HTML view page refreshed with the necessary querystring parameter intact.

I have tried this:

  1. <a href="#Form:Appointments?zc_LoadIn=dialog&Client=<%=CID%>&zc_NextUrl=#View:Client_Details_View?CID=<%=CID%>">Add Appointment</a>


After adding a record, the form closes and the HTML view refreshes but the "?CID=..." parameter is stripped from the URL and so the relevant client details cannot be fetched and displayed by the embedded view widget.

How can I get this working?

(Note: The above approach does work if a non-modal form is opened. I.e. if the "zc_LoadIn=dialog" parameter is removed.)