Hi All,

I have a dialog with the following code to upload a file;

Code:
<%a5
'UPLOAD DOC CODE
x_dlg_add_doc3.Output.Body.Dialog_HTML = stritran(x_dlg_add_doc3.Output.Body.Dialog_HTML,"method=\"post\"","method=\"post\" enctype=\"multipart/form-data\"")
%>
When a dialog form is completed and a file is attached all is well. BUT.... if you say didnt complete a mandatory field, the form re-appears with the text in different fields on the page. When i remove this piece of code, the text stays within the original fields. So the problem appears to be the above code.

I have checked through the forum, but cannot find a similar problem.

Does anyone know why this is happpening?

Thanks,

Denis