Hi Radzmar,I tried using the following as per the thread,but it is not working for my form.Not sure where I am going wrong,It will be great if I could get a sample form which implements this.var MyDialog = app.trustedFunction(function(doc, Msg, Icon, Type, Title) { app.beginPriv(); ...