Thank you for your quick response, Hilary. The function works now without errors. However, when I use the function "Fx" for a text field, it only shows the file name of the attachment after submission. But I would like to the file name shows right away on the text field after a file attached, is it possible? if yes, how do I make it work? Any suggestion is greatly appreciated. Thanks again, :)